[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron perl script won't sendmail

crond likes full pathnames is my first thought. Thats likely why it works
from the command line and not crond.


>Any ideas why the following won't actually send email when run from cron:
>open(SENDMAIL,"|sendmail $recipient");
>print SENDMAIL "From: WVFD EMS Dispatch <templin\@urdirect.net>\n";
>print SENDMAIL "To: WVFD EMT <$recipient>\n";
>print SENDMAIL "Subject: Possible EMS call\n";
>print SENDMAIL "\n";
>print SENDMAIL "SAEMS case $case at $address for $desc.\n";
>print SENDMAIL "SAEMS is sending $units units\n";
>I'm trying to tie pager notification to a website, and it runs fine on the
>command line, but not from cron.  Assume that all variables are properly
>Peter J. Templin, Jr., CCNA, CCDA
>VP Networking
>On-Line Internet Services - URDirect.net
>A division of Global On-Line Computers
>5606 Randolph Blvd		templin@urdirect.net
>San Antonio, TX 78233		(210)692-9911
>To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: