Help for this page

Select Code to Download


  1. or download this
    die "Can't fork: $!" unless defined $pid = open(KID, "-|");
    if ($pid) {           # parent
    ...
        exec 'myprog', 'arg1', 'arg2' 
            or die "can't exec myprog: $!";
    }
    
  2. or download this
    Shell Script:
    
    ...
    
    echo "Exit"
    
  3. or download this
    ...
    ...
    ...
    exec 'unixscript.sh', $dir, $exe
    ...
    ...