Hi


favorite
<http://stackoverflow.com/questions/36765058/use-of-uninitialized-value-in-do-file-at-path-par-pm-line-636#>

I used Net::SSH::Perl to ssh to server and send command and collect the
information. The script works fine when i execute it using *perl ssh.pl
<http://ssh.pl>* But when I create standalone binary using pp in redhat
linux and execute the script ./ssh.bin is throwing the below warning and
continues with the script

"Use of uninitialized value in do "file" at
HOMEPATH/perl_modules/lib/site_perl/5.14.2/PAR.pm line 636" strong text

!/usr/local/bin/perluse strict;
$| =1;use warnings;use Net::SSH::Perl;
$hostname = "******";my $username = "*******";my $password = "********";
my $cmd = "ps -ef | grep *** | grep -v grep";
my $ssh = Net::SSH::Perl->new("$hostname", debug=>0);
$ssh->login("$username","$password");my ($stdout,$stderr,$exit) =
$ssh->cmd("$cmd");print $stdout;


Please help solve this issue

Use of uninitialized value in do "file" at "path" PAR.pm line 636

http://stackoverflow.com/q/36765058/6176504?sem=2
-- 
*Best Regards,*
*Vinay Gudisagar*

Reply via email to