in reply to Controlling Terminal Accuracy
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."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Controlling Terminal Accuracy
by steves (Curate) on Oct 02, 2004 at 15:18 UTC |
In Section
Seekers of Perl Wisdom