Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by walto (Pilgrim)
on Apr 17, 2008 at 04:03 UTC ( #681001=note: print w/replies, xml ) Need Help??


in reply to How to see the processId of the process called by system command from perl

On Linux you can use:
my $pid = `pidof R`;
  • Comment on Re: How to see the processId of the process called by system command from perl
  • Download Code

Replies are listed 'Best First'.
Re^2: How to see the processId of the process called by system command from perl
by Anonymous Monk on Jan 31, 2012 at 14:19 UTC
    with pidof how to get the output of othe command which gets executed. For example if the command to be executed is "date" I want to get the output of the command to a perl variable and also the pid number.

      Have you read the pidof manpage? It tells you what pidof does. It only finds the pid of a running process. It does not launch a process.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2021-01-25 02:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?