🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.bbs.waffle
Article #18

Re: Trouble with CRON

#18
From: Pat Cain
Date: Mon, 27 Jul 1992 12:12
40 lines
1990 bytes
rop@hacktic.nl (Rop Gonggrijp) in <P6JFoB1w165w@hacktic.nl> writes:
> I seem to be having a problem with the waffle CRON:
> Some jobs don;t get executed.

Not sure if this would be the cause of the problem, but if you're
calling batch files in the schedule file then you should have
"call batchfile", for example:

 5  1 * * * e:\waffle\bin\stats
10  1 * * * call pollwcc
20  1 * * * call dobond
 0 19 * * * copy e:\waffle\text\peak.msg e:\waffle\text\files
30 23 * * * call pollcave

If you don't have "call" when calling batch files then jobs will be
dropped if more than one job gets delayed by a user online or whatever.

This is due to the way DOS does batch files .. in the above example, if
a user was online from 1:00 to 1:25 then "e:\waffle\bin\stats", "call
pollwcc", and "call dobond" would be put one after another in
waffle/bin/cron.bat:
  e:\waffle\bin\stats
  call pollwcc
  call dobond

 then Waffle would exit and run it then return.


But, if I had just "e:\waffle\bin\stats", "pollwcc", and "dobond" then
Waffle would create a batchfile cron.bat:
  e:\waffle\bin\stats
  pollwcc
  dobond

When DOS runs that it runs e:\waffle\bin\stats okay since it's a DOS
executable.  But because pollwcc doesn't have a CALL before it, it runs
it then when it's finished it exits back to the run.bat batch file, and
DOBOND never gets run.  This is possibly what is happening to you --
check your schedule file and see if there are CALLs before every batch
file, if not them put some in..
Technical Details
Message-ID: <1992Jul27.121254.wof_il@sideways.welly.gen.nz>
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cavebbs!sideways!patrick
References: <P6JFoB1w165w@hacktic.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!comp.vuw.ac.nz!cavebbs!sideways!patrick
From: Pat Cain <patrick@sideways.welly.gen.nz>
Newsgroups: alt.bbs.waffle,comp.bbs.waffle
Subject: Re: Trouble with CRON
Message-ID: <1992Jul27.121254.wof_il@sideways.welly.gen.nz>
Date: Mon, 27 Jul 1992 12:12:54 GMT
References: <P6JFoB1w165w@hacktic.nl>
Reply-To: Pat Cain <cain_p@kosmos.wcc.govt.nz>
Organization: SillyNews, Sideways bulletin board, Lower Hutt, New Zealand
Lines: 41