Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Detecting interactive/non-interactive shell (Perl Cookbook)by ybiC (Prior) |
on Jul 03, 2005 at 20:38 UTC ( [id://472070]=note: print w/replies, xml ) | Need Help?? |
As per brother mifflin above, from the Perl Cookbook 1st ed, pp 518, 519...
hth, ybiC Use -t to test STDIN and STDOUT:
If you're on a POSIX system, test process groups:
In Section
Seekers of Perl Wisdom
|
|