> From: tclug-list-bounces at mn-linux.org > [mailto:tclug-list-bounces at mn-linux.org] On Behalf Of Steve Swantz > Sent: Tuesday, March 08, 2005 8:16 PM > To: TC-LUG Mailing List > Subject: [tclug-list] How to tell if a program is run by cron > > I'm sure this will be easy for someone, but I'm not finding it now... > > I have a perl program that normally runs by cron, but occasionally > manually. I want to handle the output differently depending on how it > is run. Yes, I could add a flag to the arguments, but I seem to > remember there being a more fundamental way to determine at runtime. > Anyone know? > > Thanks, > > Steve > > _______________________________________________ > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota > tclug-list at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-list > > > Here's three articles from http://www.itworld.com/nl/unix_insider/ that cover this topic: http://www.itworld.com/nl/unix_insider/12092004/ http://www.itworld.com/nl/unix_insider/01132005/ http://www.itworld.com/nl/unix_insider/01202005/ Thad