Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Windows "Bad File Descriptor" problem

by liverpole (Monsignor)
on Sep 26, 2006 at 17:03 UTC ( [id://574981]=note: print w/replies, xml ) Need Help??


in reply to Windows "Bad File Descriptor" problem

Hi HuckinFappy,

Very simple -- you want to concatenate the strings instead:

my $_retVal = system $ENV{ ComSpec }. '/c'. $_fullCmd ;

I think your mistake was that you're used to printing strings that way (ie. by separating arguments with commas), but for system, of course, you need a concatenated string.

Update:  After I thought about that for a minute, I realized it shouldn't make a difference.  But of course someone else had already beaten me to that conclusion.  Please ignore my erroneous advice above, and give your ++ votes to runrig instead.  :-(


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Windows "Bad File Descriptor" problem
by runrig (Abbot) on Sep 26, 2006 at 17:06 UTC
    If you read the docs for system, you'll see that system LIST is fine.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://574981]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found