Topic Options
#1303 - 12/21/00 10:22 AM Loading jobs on-the-fly
Luke Tomasello Administrator Online   content
Member

Registered: 09/17/00
Posts: 739
Loc: San Jose, CA., USA
# Keep looking in the temp dir for machine generated scripts.
# perfect for CGI
{
-start
-action -print Checking for new jobs
# load, run and delete all scripts like c:\temp\*.tab
-action -load -temp c:\temp\*.tab
# do this every 10 seconds
-action -inc 0 0 0 10
}
_________________________
Regards,
Luke Tomasello

Top
#1304 - 08/14/01 08:13 AM Re: Loading jobs on-the-fly
Luke Tomasello Administrator Online   content
Member

Registered: 09/17/00
Posts: 739
Loc: San Jose, CA., USA
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

Top


Moderator:  Luke Tomasello