Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 imbibing at the Monastery: (5)
As of 2020-10-20 18:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (210 votes). Check out past polls.

    Notices?