Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by secret (Beadle)
on Nov 25, 2005 at 15:05 UTC ( #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
Node Status?
node history
Node Type: note [id://511683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2020-02-17 12:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (71 votes). Check out past polls.

    Notices?