I think the canonical test is -t which is the same as -t STDIN. For your case -t STDOUT might be better.
- tye (but my friends call me "Tye")In reply to (tye)Re: Detecting running from cron?
by tye
in thread Detecting running from cron?
by oakley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |