The '-t' filetestoperator checks if the filehandle is a tty.if (-t STDIN) { print 'running in terminal'; } else { print 'running in batch'; }
In reply to Re: Script running online?
by busunsl
in thread Script running online?
by elusion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |