On 20 Mar, 22:43, [email protected] ("Dr.Ruud") wrote: > syd_p wrote: > > On 18 Mar, 23:10, [email protected] ("Dr.Ruud") wrote: > >> syd_p wrote: > >>> The embedded system call fails ie returns 256 [i caught the code with > >>> a $ret = system (" /usr/bin/cat /tmp/TT.sql | /tmp/TT.cmd");] > >> perldoc -f system > > > Ta. I did look at the ouput from perldoc -f system. > > But this did not seem to help. > > Am I missing something? > > ... > else { > printf "child exited with value %d\n", $? >> 8; > } > > So it actually exited with value 1. > > What did you expect? > > -- > Ruud
Well I was hoping for a 0 and successfull completion of the system call from inside cgi (just like it succeeded from the commandline). I did a env> /tmp/env.out from inside the cgi and found that a variable was set wrongly (but was OK in env for standalone program) . fixed that and it works now... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] http://learn.perl.org/
