hi,
is there a way for me to determine whether perl executes in a tty for proper presentation of output?
let's say given script.pl...
from a terminal:
$ script.pl <enter>
some output...
but, from a crontab, no output should be generated on screen. the output would be an email to someone@domain.com
is there a way for me to determine whether perl executes in a tty for proper presentation of output?
let's say given script.pl...
from a terminal:
$ script.pl <enter>
some output...
but, from a crontab, no output should be generated on screen. the output would be an email to someone@domain.com