[RndTbl] Potentially long cron jobs

Sean Walberg swalberg at gmail.com
Thu Apr 1 13:18:26 CDT 2010

if [ -f $TURD ]; then
touch $TURD
# do stuff
rm $TURD

(yes, there's a potential race condition. Probably doesn't matter though)


On Thu, Apr 1, 2010 at 1:06 PM, Kevin McGregor
<kevin.a.mcgregor at gmail.com>wrote:

> I want to run something via cron which will take anywhere from less than a
> minute to a day or so (possibly). Most of the time it will be well under an
> hour, and I'd like it to run hourly, except if it's still running, in which
> case nothing more need be done.
> What the best way to do that?
> Kevin
> _______________________________________________
> Roundtable mailing list
> Roundtable at muug.mb.ca
> http://www.muug.mb.ca/mailman/listinfo/roundtable

Sean Walberg <sean at ertw.com>    http://ertw.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.muug.mb.ca/pipermail/roundtable/attachments/20100401/b40948da/attachment.html 

More information about the Roundtable mailing list