[Chicago-talk] Is it running from cron?

Jim Jacobus JJacobus at PonyX.com
Wed Feb 21 15:41:27 PST 2007


Is there an easy way to test if a script is running from cron? I want 
one script to output differently if it is running with a browser and 
another output when running via cron. I tried using -t to test STDIN 
and STDOUT, but that only tells me if it's running interactively or not. 



More information about the Chicago-talk mailing list