Date: Mon, 16 Sep 2013 20:55:48 -0700 From: aurfalien <aurfalien@gmail.com> To: Paul Macdonald <paul@ifdnrg.com> Cc: freebsd-questions@freebsd.org Subject: Re: test if script called by cron Message-ID: <6E30E203-1062-41C6-A553-68D6AB372C4A@gmail.com> In-Reply-To: <5236EB03.7040001@ifdnrg.com> References: <5236EB03.7040001@ifdnrg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
An easy way to do this is check /var/log/cron There are many other ways.=20 - aurf On Sep 16, 2013, at 4:26 AM, Paul Macdonald wrote: >=20 > Hi, >=20 > Is there a simple way of testing whether a given script was called via = cron, >=20 > I'd rather find a solution that would work from within the script = rather than setting an environment variable in the crontab. >=20 > thanks > Paul. >=20 > (anyone here going to EuroBSD con?) >=20 > --=20 > ------------------------- > Paul Macdonald > IFDNRG Ltd > Web and video hosting > ------------------------- > t: 0131 5548070 > m: 07970339546 > e: paul@ifdnrg.com > w: http://www.ifdnrg.com > ------------------------- > IFDNRG > 40 Maritime Street > Edinburgh > EH6 6SA > ---------------------------------------------------- > High Specification Dedicated Servers from =A3100.00pm > ---------------------------------------------------- >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6E30E203-1062-41C6-A553-68D6AB372C4A>