test if script called by cron
Paul Macdonald
paul at ifdnrg.com
Mon Sep 16 11:47:12 UTC 2013
Hi,
Is there a simple way of testing whether a given script was called via cron,
I'd rather find a solution that would work from within the script rather
than setting an environment variable in the crontab.
thanks
Paul.
(anyone here going to EuroBSD con?)
--
-------------------------
Paul Macdonald
IFDNRG Ltd
Web and video hosting
-------------------------
t: 0131 5548070
m: 07970339546
e: paul at ifdnrg.com
w: http://www.ifdnrg.com
-------------------------
IFDNRG
40 Maritime Street
Edinburgh
EH6 6SA
----------------------------------------------------
High Specification Dedicated Servers from £100.00pm
----------------------------------------------------
More information about the freebsd-questions
mailing list