[Ssh-sftp-perl-users] Odd ssh hang when executing command
Brought to you by:
dbrobins
From: Sander P. <San...@da...> - 2006-03-23 01:13:53
|
Hello, I have some scripts that use Net::ssh::perl to execute commands on our Linux based appliance. We recently upgraded the kernel level and I'm seeing some odd behavior that didn't occur with the previous one. If the box has sat for a while my script will execute fine but if I immediately run the script again it hangs when trying to execute a command over ssh. I turned debug to 1 and these are the last 4 lines of the output: sander.datadomain.com: Sending command: cifs enable sander.datadomain.com: Requesting service exec on channel 1. sander.datadomain.com: channel 1: open confirm rwindow 0 rmax 32768 sander.datadomain.com: input_channel_request: rtype exit-status reply 0 Can anyone shed any light on what the $ssh->cmd() call is waiting for? It appears that the command 'cifs enable' is not completing although I can not reproduce this by executing it by hand in an interactive ssh session (Putty). I'm trying to get the DUT to be more chatty to tell me what it's doing as well. Thanks, Sander =20 |