RE: [Ssh-sftp-perl-users] Interfacing with network appliance through ssh
Brought to you by:
dbrobins
From: Eric L. <net...@er...> - 2006-03-25 22:56:32
|
> > I think I might have found part of the problem, maybe... > > When you call: $ssh->cmd("$cmd"); > > I believe that it waits for an exit code from whatever it is > executing. In my case, I am not executing anything, > therefore I wont receive an exit code. > > I guess that I need to setup my own channel and not use $ssh->cmd. > I was looking at this again today and at the Net::SSH::Perl docs. A couple of things came to mind. First, you may want to try enabling interactive. I believe to interact with a prompt you do not want to be running in batch mode. You may also have to allocate a tty depending on the requirements of your program. |