At 11:52 PM 05/09/02 +0000, you wrote:
Hi All, A customer used to use this script now he says it wont work, sendmail is running and I have restarted it to make sure, can anyone see anything wrong with the script? or have any other ideas. open(REPLY, "|/usr/sbin/sendmail -t"); print REPLY "To: test\@energizze.co.uk \n"; print REPLY "From: automail\@energizze.co.uk \n"; print REPLY "Subject: Automail \n"; print REPLY "TEST\n"; close(REPLY); Regards Mark
We use a similar script, works fine. #!/usr/bin/perl #$topoutput = `/usr/bin/top -b -n1`; $topoutput = `cat /proc/meminfo`; open (MAIL,"|/usr/sbin/sendmail -t"); print MAIL "From: admin\n"; print MAIL "To: admin\n"; print MAIL "Subject: Hourly MEM Report\n\n"; print MAIL "$topoutput\n\n"; close (MAIL); You are missing this line >> #!/usr/bin/perl - Bill --------------------------------- William J.A. Brillinger Precision Design Co. E-Mail: mailto:billy@xxxxxxxxxx Web site: http://www.pdcweb.net