need your helpppp



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!

.



Relevant Pages

  • Re: Problems installing XP SP2!
    ... package source directory and make sure the that XPSPS2sms.exe file exists in ... in your SMS Program command line property. ... > Executing program as a script ... > OnOptionalExecutionRequests failed for program Automated upgrade from XP ...
    (microsoft.public.sms.admin)
  • Re: Windows update error 0x80242008
    ... 2.219: Hotfix started with following command line: /si ... Unexpected Error While Executing Line 1 ( ... Test.IE7InstallBlock.Section) of PreRequisite ...
    (microsoft.public.windowsupdate)
  • need your helpppp
    ... p1.cgi is a executable I get from after executing command: ... 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. ...
    (perl.beginners)
  • RE: Open Form Code
    ... I've generally found that if you issue a DoEvents command after opening the ... I set that form's VISIBLE property to FALSE. ... VISIBLE property to TRUE immediately prior to executing the code. ...
    (microsoft.public.access.formscoding)
  • Re: Problem with Sql Server
    ... The sproc returns data ... > - Executing the command as an sproc by passing the sproc name and the ... > - Executing the command using CommandType.Text and passing the same string ... > - Running both web server and db server on same machine. ...
    (microsoft.public.dotnet.framework.adonet)