I have a perl script which gives me the following error when it runs in cron:
write: can't find your tty
The purpose of the script is to send a notification to sysadm via the write unix command.
The script is as follows:
$username = "sysadm";
$message = "here";
open term, "|/usr/bin/write $username";
print term $message;
Any ideas on a fix?