Help for this page

Select Code to Download


  1. or download this
    system("/usr/bin/ps > test1.out");
    
  2. or download this
    system("/usr/bin/ps > test1.out &");
    
  3. or download this
    my $pid=spawn("/usr/bin/ps","test1.out");
    
    ...
            die "Could not fork $cmd : $!";
       }
    }