Help for this page

Select Code to Download


  1. or download this
    my $pid = fork();
    die "unable to fork: $!" unless defined($pid);
    ...
        die "unable to exec: $!";
    }
    # parent continues here, pid of child is in $pid