Help for this page

Select Code to Download


  1. or download this
    my $pid;
    defined($pid = fork()) or die "unable to fork: $!\n";
    ...
      die "unable to exec: $!\n";
    }
    # parent continues here
    
  2. or download this
      exec("R", "and", "some", "args");  # $pid will be the R command
      exec("R and some args  > out"); # $pid will be that of a shell