if (-t) { # STDIN is attached to a terminal # that is, we're running interactively ... }
-- Randal L. Schwartz, Perl hacker
In reply to •Re: How do I find out if STDIN or STDOUT are attached to a pipe?
by merlyn
in thread How do I find out if STDIN or STDOUT are attached to a pipe?
by ehdonhon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |