[Chicago-talk] Is it running from cron?

Jonathan Rockway jon at jrock.us
Wed Feb 21 16:29:57 PST 2007


On Wednesday 21 February 2007 18:25, brian d foy wrote:
> I like to set a variable in my cron tab. I can then check for that in
> my script if I decide that I want to act differently:
>
> FROM_CRON=1
> 1 2 3 4 5 /some/command some args

That's the safest technique.  

I'm pretty sure that MAILTO is set by default also, and that's not usually set 
outside of cron.

-- 
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;


More information about the Chicago-talk mailing list