Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Launch process, get PID

by dcparham (Initiate)
on Dec 02, 2014 at 03:41 UTC ( [id://1108913]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Net::SSH::Perl;
    ...
    
    my $remoteCmd = `ssh myserverid.company.com -l myuid -i /home/myuid/.s
    +sh/authorized_keys top`;
    
  2. or download this
    #!/usr/bin/perl -w
    use IO::Handle;
    my $handle = IO::Handle->new;
    my $pid = open($handle, 'command & |') or die $!;
    print $pid;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found