This may have been asked before, if so sorry, the search dont work.. and I dont see a same/like topic ..
All I want to do is have my cgi prog (prog1.pl) run my (prog2.pl) then return to my prog1.pl ..
#prog1.pl
print "I am in prog1.pl<br>\n";
#run the cgi "prog2.pl";
print "back in prog1.pl<br>\n2;
#prog2.pl
print "hello for prog2.pl<br>\n";
exit;
so the output I want through the browser wants to be
I am in prog1.pl
hello from prog2.pl
back in prog1.pl
If I use system "/user/bin/perl prog2.pl" I get the output
I am in prog1.pl
back in prog1.pl
so although it 'finds' prog2.pl prog2.pl seems just not to run and generate the output..
Obviously prog1 and prog2 are quite large I also need to pass vars into prog2 (none need come out though) I can probaly do that if I can get somet output from prog2.
Both prog1 and prog2 work properly from the browser. It seems like the output from prog2 is NOT generated to the browser when called from prog1 .. Any help ??
All I want to do is have my cgi prog (prog1.pl) run my (prog2.pl) then return to my prog1.pl ..
#prog1.pl
print "I am in prog1.pl<br>\n";
#run the cgi "prog2.pl";
print "back in prog1.pl<br>\n2;
#prog2.pl
print "hello for prog2.pl<br>\n";
exit;
so the output I want through the browser wants to be
I am in prog1.pl
hello from prog2.pl
back in prog1.pl
If I use system "/user/bin/perl prog2.pl" I get the output
I am in prog1.pl
back in prog1.pl
so although it 'finds' prog2.pl prog2.pl seems just not to run and generate the output..
Obviously prog1 and prog2 are quite large I also need to pass vars into prog2 (none need come out though) I can probaly do that if I can get somet output from prog2.
Both prog1 and prog2 work properly from the browser. It seems like the output from prog2 is NOT generated to the browser when called from prog1 .. Any help ??