RE: [Ssh-sftp-perl-users] Interfacing with network appliance through ssh
Brought to you by:
dbrobins
From: Matthew J. S. <vag...@ya...> - 2006-03-27 15:05:10
|
Thanks for the suggestion, I tried it, but I get the same results. --- Eric Langheinrich <net...@er...> wrote: > > > > > 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. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |