Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Effect of redirecting output to /dev/null on $? value

by jcb (Vicar)
on Aug 05, 2020 at 00:01 UTC ( #11120298=note: print w/replies, xml ) Need Help??


in reply to Re^2: Effect of redirecting output to /dev/null on $? value
in thread Effect of redirecting output to /dev/null on $? value

I have used this before, but our questioner seemed to be asking for a minimal solution. This strategy is the only way if you need more than the basic pipes, but (having just checked) IPC::Open3 is actually implemented using system, presumably for compatibility on Windows, where fork must be emulated.

  • Comment on Re^3: Effect of redirecting output to /dev/null on $? value

Replies are listed 'Best First'.
Re^4: Effect of redirecting output to /dev/null on $? value
by ikegami (Pope) on Aug 05, 2020 at 04:11 UTC

    open3 only uses system in Windows and OS/2; fork is used elsewhere.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2020-09-30 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (157 votes). Check out past polls.

    Notices?