Re: need your helpppp
- From: "Debbie523" <Deb.Fang@xxxxxxxxx>
- Date: 22 Jun 2006 09:59:30 -0700
harryfmudd [AT] comcast [DOT] net wrote:
I'm no expert, but ...
It seems to me that the first thing is to figure out why the exec fails.
If you read the documentation (hint: perldoc -f exec) you'll see
something like the code I have inserted. There are differences between
executing a Perl script from the command line and executing it as a CGI
script, which include the setting of the PATH variable, and the
accessability of files in general. Dumping the status of the exec call
will help you diagnose this.
But I predict that you will find a second problem when you get the first
one sorted out, because I predict that when you run try.cgi from the
shell, you will not get the HTML output, except for the headers, if the
exec succeeds. See the documentation on exec for the answer to this one,
too.
Tom Wyant
Tom, thanks for your help and reply. This time after I changed the line
exec ("p1.cgi") to
exec ("p1.cgi") or print "failed to exec p1.cgi: $!";
after execute by browser I got the line :
Failed to exec p1.cgi: No such file or directory
displayed.
I guess you are right, and the browser can't find the file p1.cgi
So then I guess the set of path is wrong.
Could you tell me how I should set the path??
.
- Follow-Ups:
- Re: need your helpppp
- From: Sherm Pendley
- Re: need your helpppp
- References:
- need your helpppp
- From: Debbie523
- Re: need your helpppp
- From: harryfmudd [AT] comcast [DOT] net
- need your helpppp
- Prev by Date: Re: manipulate csv module
- Next by Date: Re: need your helpppp
- Previous by thread: Re: need your helpppp
- Next by thread: Re: need your helpppp
- Index(es):
Relevant Pages
|