Chris Radcliff chris at
Fri Feb 25 13:01:52 CST 2000


Hi Joel,

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 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:
> ~sdpm~
> 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]
> script not found or unable to stat:
> /u/web/theede/cgi-local/
> apache: [Wed Feb 23 21:03:46
> 2000] [error] [client] Premature end of script
> headers:
> /u/web/theede/cgi-local/
> ==============================
> ===========
> #!/usr/local/bin/perl
> use CGI qw(:cgi-lib :standard);
> open
> (SENDMAIL,"|/USER/LIB/sendmail -oi -t -odg");
> print SENDMAIL
> <<"EOF";
> From: joel at
> To: joel at
> Subject: Mail
> Test
> This is the message body.
> close (SENDMAIL);

The posting address is: san-diego-pm-list at

List requests should be sent to: majordomo at

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

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> .
This is the general rule for most mailing lists when you need
to contact a human.

More information about the San-Diego-pm mailing list