need your helpppp
- From: "Debbie523" <Deb.Fang@xxxxxxxxx>
- Date: 22 Jun 2006 07:54:27 -0700
I have a perl script named try.cgi, which is the action value of a form
containned in
test12.php file.Part of my try.cgi is as following:
#!/bin/perl -w
use strict;
use CGI;
$query=new CGI;
my $nominees=$query->param('n1');
my $nominations=$query->param('n2');
my $leaders=$query->param('n3');
my $followers=$query->param('n4');
my $filename=$query->param('f1');
print $query->header();
exec ("p1.cgi");
print <<END_HTML;
<html>
.
.
.
</html>
p1.cgi is a executable I get from after executing command:
gcc -o p1.cgi p1.c
in unix shell.
And the function of p1.cgi is writing word "welcome" to file op.txt
Also it works fine if I use command "p1.cgi" in unix shell.
but if I executed from test12.php, after I submit the form there, it
goes
to page try.cgi and display the value $nominees, $nominations ......(I
just let
them get printed in <html> section of try.cgi. But it looks like does
not
execute the command exec ("p1.cgi").Coze I can't see word in op.txt
file.
I spent a lot time on this question. Could someone help me?
Thanks a lot!
.
- Follow-Ups:
- Re: need your helpppp
- From: harryfmudd [AT] comcast [DOT] net
- Re: need your helpppp
- Prev by Date: Re: manipulate csv module
- Next by Date: Re: manipulate csv module
- Previous by thread: Perl programmer needed
- Next by thread: Re: need your helpppp
- Index(es):
Relevant Pages
|