[Ssh-sftp-perl-users] $ssh->shell example for interactive commands?
Brought to you by:
dbrobins
From: Sander P. <San...@da...> - 2006-02-06 19:35:22
|
All, Our device has a few commands that require inactive input (name and password). It is my understanding I should use the $ssh->shell method to switch to interactive mode but this is a bit beyond me Perl wise. Does anyone have an example of how you wait for a prompt and then provide an answer? I googled but didn't find anything useful. Of course the method 'shell' is also part of 'secure shell' so there are a lot of irrelevant hits to wade through :) I could switch to Net::telnet and modify the prompt but I'd rather learn how to do this with net::ssh::perl. Thanks, Sander |