Best to set a variable in the crontab file, as mentioned below.perl -e 'print "foo\n" if exists $ENV{_};'
In reply to Re: Re: Detecting running from cron?
by turnstep
in thread Detecting running from cron?
by oakley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |