Perl Monks,
Based on replies I changed the code as follows to trap any 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 variable above 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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.