Help for this page

Select Code to Download


  1. or download this
    #!/bin/sh
    #
    ...
    echo "Returned $?"
    
    exit 0
    
  2. or download this
    #!/usr/bin/perl
    #
    ...
        print "MY_VAR is not set\n";
        exit 1;
    }
    
  3. or download this
    #!/usr/bin/perl
    #
    ...
    else {
        printf "child exited with value %d\n", $return >> 8;
    }
    
  4. or download this
    #!/usr/bin/perl
    #
    ...
    else {
        printf "Child '%s' exited with value %d\n", $binary, $? >> 8;
    }