There's more than one way to do things | |
PerlMonks |
Re: Controlling Terminal Accuracyby JaWi (Hermit) |
on Oct 02, 2004 at 14:32 UTC ( [id://395889]=note: print w/replies, xml ) | Need Help?? |
You can use the -t operator to check whether your script is connected to a TTY.
At least under my Debian system, I get a positive result (1) for the -t operator for a job started from the console, and nothing for 'crontabbed jobs'.
HtH, -- JaWi "A chicken is an egg's way of producing more eggs."
In Section
Seekers of Perl Wisdom
|
|