Hello,
I am crafting some perl code:
...
system (" /usr/bin/cat /tmp/TT.sql | /tmp/TT.sql");
..
the above code works on Solaris perfectly well in a standalone perl
script.
ie it inserts a line into a database.

when I invoke it in a cgi, although I can build the 2 files in /tmp
with an
open SQLFILE, ">/tmp/TT.sql";
for example.

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");]

and fails to actually cat the contents of /tmp/TT.sql into the stdin
of /tmp/TT.sql abd does not insert a line into the db ;-(

Please help if you have some suggestions..

Also the cgi is running under tomcat  servlet cgiservlet which
has a web.xml file where debug=0.
I have set debug=3 and restarted and exercised the cgi code again.
Probably I should look in "the" log file but I have unable to find it.

Again suggestions v welcome..

Syd


how



-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to