chris at binev.com
Fri Feb 25 13:01:52 CST 2000
What happens when you run the script from the command line or in -w
Just off the top of my head, you need to escape the @ in joel at cts.com so
Perl doesn't think you're referencing an array, and you should check if
your open statement actually works, like thus:
open (SENDMAIL,"|/USER/LIB/sendmail -oi -t -odg") or die "yipes!";
It looks like the path might be invalid (what OS is this under?) so
check if /USER/LIB/sendmail actually exists.
I'm not even looking at the sendmail parameters. Check those if all else
Joel Fentin wrote:
> The following is a simplified version of the program in the
> cookbook (Pg. 651). It isn't working and I don't have a clue.
> Than you for any ideas.
> apache: [Wed Feb 23 21:03:16 2000] [error] [client 220.127.116.11]
> script not found or unable to stat:
> apache: [Wed Feb 23 21:03:46
> 2000] [error] [client 18.104.22.168] Premature end of script
> use CGI qw(:cgi-lib :standard);
> (SENDMAIL,"|/USER/LIB/sendmail -oi -t -odg");
> print SENDMAIL
> From: joel at cts.com
> To: joel at cts.com
> Subject: Mail
> This is the message body.
> close (SENDMAIL);
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm