RE: [Ssh-sftp-perl-users] Interfacing with network appliance through ssh
Brought to you by:
dbrobins
From: Eric L. <net...@er...> - 2006-03-27 16:26:13
|
I looked through the example some more and compared it to what you are doing. If I understand how your system works correctly, after logging in through ssh, you are immediately prompted for a login to whatever subsystem you are trying to access. You don't have to issue a command to initiate the second login sequence right? You might want to try breaking up the username password stuff from line 31. Just send username at that prompt rather than sending both. Also may want to try removing the new lines. Probably not the problem, but it's worth a shot. Also worth looking into how you are doing the send data steps since between lines 31 and 36 you are building them differently. > -----Original Message----- > From: ssh...@li... > [mailto:ssh...@li...] On > Behalf Of Matthew J. Salerno > Sent: Monday, March 27, 2006 8:05 AM > To: Eric Langheinrich; Vag...@ya...; > ssh...@li... > Subject: RE: [Ssh-sftp-perl-users] Interfacing with network > appliance through ssh > > 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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking > scripting language > that extends applications into web and mobile media. Attend > the live webcast > and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720& dat=121642 > _______________________________________________ > Ssh-sftp-perl-users mailing list > Ssh...@li... > https://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users > |