Hiya Guys. Got this problem with this expect script I've written. The guts of the script is that it takes this comic .gif and encodes it (MIME) and mails it to me at another address. It goes fine when I run the script by hand (i.e. at the prompt), but when I call it from a cron job, I get this message: spawn telnet localhost 25 failed to get controlling terminal using TIOCSCTTYparent: sync byte write: broken pipe Now this script works by way of telnetting to the sendmail port of this machine, doing all the EHLO, RCPT MAIL etc thingees by hand, and I'm picking it dies on the first line when it tries to telnet. By why when I run it from cron and not when I run it by hand?
