Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2007 16:37:54 +1100 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Kevin Kinsey <kdk@daleco.biz>
Cc:        freebsd-questions@freebsd.org, Rudy <crapsh@monkeybrains.net>
Subject:   Re: cron pile up!  Lot's of "cron: running job (cron)"
Message-ID:  <Pine.BSF.3.96.1071216160742.27136A-100000@gaia.nimnet.asn.au>
In-Reply-To: <20071216022333.9119316A569@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 15 Dec 2007 16:18:31 -0600 Kevin Kinsey <kdk@daleco.biz> wrote:
 > Rudy wrote:
 > >> The thing is, sometimes it runs fine, other times it backlogs (It may 
 > >> complete at a latter date... the PID 82253 is still waiting ... Gonna 
 > >> see it it completes instead of killing all the stuck crons...).
 > >>
 > > 
 > > All the crons are cleared out right now... 'ps' shows only crond.  
 > > Related to putting the other cron job in " marks???
 > > 
 > 
 > Well, I think I messed up in my suggestion, by omitting the
 > CRON at the end.  My point/thought was, put the entire command
 > "/path/to/script.sh  ARG" in quotes.
 > 
 > Cron is pretty archaic, and I wondered if it was trying to
 > run "/path/to/script.sh" and "ARG" as two jobs instead of
 > one, and hanging on "ARG" since CRON is something of a 
 > reserved word.  IANAE, YMMV, and all that.

MMV :)  The following has been merrily running on three boxes, the
oldest of them for, um, 9.5 years: 

*/5     *       *       *       *       root    /root/bin/ipfwsnap cron

Yes, 'cron' is a checked and logged argument to ipfwsnap.  Various other
/etc/crontab entries demonstrate no need to enclose arguments in quotes,
except where they'd be necessary anyway - as per examples in crontab(5)

Cheers, Ian




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1071216160742.27136A-100000>