Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: How to see the processId of the process called by system command from perl

by pc88mxer (Vicar)
on Apr 16, 2008 at 20:13 UTC ( [id://680912]=note: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://680912]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found