If you need to have the results from the loaded script immediately available (E.g., if the loaded script set an environment variable) then you should add the -wait switch.
# Keep looking in the temp dir for machine generated scripts.
# if we find one, -wait for it to finish running.
# perfect for CGI
{
-start
-action -print Checking for new jobs
# load, run and delete all scripts like c:\temp\*.tab
-action -load -temp -wait c:\temp\*.tab
# do this every 10 seconds
-action -inc 0 0 0 10
}
_________________________
Regards,
Luke Tomasello