/* Notifywatch example

   Simple example which shows how you can easily have VC check
   recent uploaded files. This script offcourse has to be expanded
   if you want more then VC just telling you what has happened.
   Another drawback is also that it stops as soon as it has received
   one notify change.

   Maybe someone likes to code this in a better way, I am not an Arexx
   coder you know.

*/

options results

address 'Virus_CheckerII' 'NOTIFYWATCH Pinkie'

if VCHECK.0.0 = 0 then do
	say 'No viruses found in scan'
    call stopnotify
	exit
end

say 'Viruses found: ='VCHECK.0.0

do x=1 to VCHECK.0.0
	say 'Filename was "'VCHECK.x.1'" and virus was "'VCHECK.x.2'"'
end

call stopnotify
exit

stopnotify:
address 'Virus_CheckerII' 'STOPNOTIFYWATCH Pinkie'
return
