Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Safe cross-platform command execution and capture of STDOUT & STDERR

by secret (Beadle)
on Nov 25, 2005 at 15:05 UTC ( [id://511683]=note: print w/replies, xml ) Need Help??


in reply to Safe cross-platform command execution and capture of STDOUT & STDERR

I think that what i would do is test for the platform in a consistent way ( Sys::Hostname ) and branch the program in two cases depending on the result.

This way you can use the windows way of redirecting STD* which is Win32::Job .

  • Comment on Re: Safe cross-platform command execution and capture of STDOUT & STDERR

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-24 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found