<?xml version="1.0" encoding="windows-1252"?>
<node id="1007498" title="Re: Need Help in NET::SSH::Perl to fetch the status of remote pid" created="2012-12-06 03:02:04" updated="2012-12-06 03:02:04">
<type id="11">
note</type>
<author id="528646">
Khen1950fx</author>
<data>
<field name="doctext">
I tried it on my system. It works for me; however, I did it a little differently:
&lt;c&gt;
#!/usr/bin/perl -l

use strict;
use warnings; 
use Net::SSH::Perl;
 
my $host = 'xl-blr-03.ban';
my $user = 'mcsi_user';
my $password = 'password';
my $cmd  = system("kill 0 28075; echo $?");

my $ssh = Net::SSH::Perl-&gt;new($host, debug =&gt; 1);
$ssh-&gt;login($user, $password);

my($stdout, $stderr, $exit) = $ssh-&gt;cmd($cmd);
&lt;/c&gt;
</field>
<field name="root_node">
1007481</field>
<field name="parent_node">
1007481</field>
</data>
</node>
