Mar 15, 2011, 1:57 PM
Post #5 of 6
cpan - Net::SSH does not play well with the device I'm trying to SSH into because we have to use keys. We actually solved this by having the perl script write the command to a .cmd file and running it that way.
Re: [bornwildnfree] Plink command hangs in perl?
[In reply to]
open(MyFile,">","svc.cmd") or die "Unable to create file svc.cmd\n";
$svctask = "ECHO OFF\nplink.exe -batch -t -ssh -l $user -i $svckey -2 $IP svcinfo lshostvdiskmap -delim : $hostid";
print MyFile "$svctask";
@svcvdisklist = qx ("svc.cmd") or die "Unable to open SVC\n";