Topic Options
#35 - 12/21/00 02:22 PM Multiple Jobs
Ron Offline
Junior Member

Registered: 12/21/00
Posts: 1
Anybody have any idea how to run multiple jobs? This site briefly touches on them, to use job names, but provides no other doc. or samples. I've tried: { -start -time 00:00:01 AM -command c:\executable1.exe -action -inc 1 0 0 0 } { -start -time 00:00:02 AM -command c:\executable2.exe -action -inc 1 0 0 0 }

And also tried: { -start -time 00:00:01 AM -command c:\executable1.exe -action -inc 1 0 0 0 -start -time 00:00:02 AM -command c:\executable2.exe -action -inc 1 0 0 0 }

All I ever get is the error: -mode execution error.

I have no clue what to do.

Top
#36 - 12/21/00 02:23 PM Re: Multiple Jobs
toa Offline
Junior Member

Registered: 12/21/00
Posts: 2
Put all your jobs in a batchfile and run the batchfile instead.

Have WinCron call myfile.bat at the desired time and let myfile.bat contain lines with executable1, executable2 and so on...

Top
#37 - 12/21/00 02:31 PM Re: Multiple Jobs
mark Offline
Junior Member

Registered: 12/21/00
Posts: 1
The only problem with putting all your jobs in a batch file that gets called is that it requires that all jobs be on the same schedule. I have a job that gathers my news and mail on a hourly basis (actually, every 3 hours). I also have a job that rotates my mail log, renaming the old log file and giving it a datestamp. I'm hoping that the following will work...

{ -name getnews -start 01/18/2000 06:00:00 PM -constrain 0 0 10 0 -command c:\runme.bat -action -inc 0 3 0 0 }

{ -name maillog -start 11/14/2000 01:00:00 AM -constrain 0 0 10 0 -command c:\rotmail.bat -action -inc 2 0 0 0 }

Where getmail and rotmail are batch files that get my news and mail, and rotate the log file, respectively.

I think using names is important when you have multiple jobs in a file. I'll let you know if this doesn't work.

Top
#38 - 12/21/00 09:14 PM Re: Multiple Jobs
Luke Tomasello Administrator Offline
Member

Registered: 09/17/00
Posts: 740
Loc: San Jose, CA., USA
Yes Mark, this is the correct way to accomplish this task.

You simply put multiple jobs into a single file. (Or you can load separate files that contain the different jobs.)

The point is that you don't need to lump all your tasks into a single batch file.

I have just added a new sample to the Support Center titled "Multiple Jobs" http://www.tomasello.com/cgi-local/forum...=100&LastLogin=

Luke Tomasello
_________________________
Regards,
Luke Tomasello

Top


Moderator:  Luke Tomasello