Gentlemen, and Ladies,
I am running Perl 5.8.3 that is the Windows Perl embedded with Oracle 10g DBMS during the Oracle installion. Admittely, I am dangerous with Perl as it was so painfully pointed out, but, I need to fix the problem.
Based on replies I changed the code as follows to trap an error.
$hldcmd = "$pathcc\\$hldbat > $pathcc\\$txtname.txt";
open SYSCALL, "$hldcmd |" or die "Requested submit failed -> $hlcmd: $!";
I received the following error message on the browser->
Software Error:
Requested submit failed -> , Bad file descriptor at C:\Inetpub\pmmproot\cgi-bin\viewbat.pl line 255 (this is the SYSCALL line above).
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
Tue Oct 27 09:39:29 2009 viewbat.pl: Requested submit failed -> , Bad file descriptor at C:\Inetpub\pmmproot\cgi-bin\viewbat.pl line 255.
I checked the paths/names and they look good. The variables translate to the following values:
pathcc - C:\inetpub\pmmproot\pmmpcc
hldbat - B1MSN10232009104615.BAT
txtname - B1MSN10232009104615
submit - C:\inetpub\pmmproot\pmmpcc\B1MSN10232009104615.BAT > C:\inetpub\pmmproot\pmmpcc\B1MSN10232009104615.txt
I took the value in submit and ran it in DOS and it worked.
So I am more confused.
I certainly appreciate you taking the time but I am not sure what to look at next.
Thanks Tim