I have a fairly sizable perl module that I'm building that contains a large set of function/methods implementing the build and related tasks for a software product. I have a great deal of it working. Late yesterday I ran across the following error which I am having trouble diagnosing:
Can't spawn "cmd.exe": No error at file.pm line xxx.
This line is a system function call. What makes this so difficult to understand is the the code at the line in question is no different from similar code just a few lines earlier. Here is a slice of the relevent code, with first the system call that works followed by the system call that is failing:
$cstring = $vc6cmd . " " . $project . " " . $cargs;
@cmd = ("$cstring");
$status = system("@cmd 1>>$sout 2>&1");
$cstring = $bldcheck . " vc " . $sout;
$self->trace("--- $cstring\n");
@cmd = ("$cstring");
$status = system("@cmd 1>>$logfile 2>&1");
Thanks in advance for you assistance in diagnosing this problem. I should note that I am running ActiveState build 806, v5.8.0.
-Marc
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.