Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by afoken (Canon)
on Aug 04, 2020 at 20:27 UTC ( #11120288=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    `exec my_executable_that_seg_faults > /dev/null`;
    
  2. or download this
    # (untested)
    my $pid=fork();
    ...
        exec { $cmd_and_args[0] } @cmd_and_args;
        die "exec failed: $!";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2021-01-25 19:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?