Help for this page

Select Code to Download


  1. or download this
    # parent.pl
    
    ...
       $child->GetExitCode(my $child_exit_code);
       print("Child exited with code $child_exit_code\n");
    }
    
  2. or download this
    # child.pl
    use Time::HiRes qw( sleep );
    ...
    print "Doing something\n";
    sleep(0.100);
    print "done.\n";
    
  3. or download this
    >perl parent.pl
    Lanched child.
    ...
    Child still executing...
    done.
    Child exited with code 0