Help for this page

Select Code to Download


  1. or download this
    my $output = `echo hello`; # Output contains "hello"
    if (WIFEXITED($?)) {
        print("Command exited with status " . WEXITSTATUS($?));
    ...
        # If desired, use the other macros to figure out which
        # signal killed the process.
    }