From: "Gonçalo Pires" Date: 2009-02-13T05:26:10+09:00 Subject: Net-Ssh --001636498e51de18580462be8cac Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > Hi there, > > I'm trying to develop a script that will use net-ssh to performe some > routine commands on a remote server. > > But i've a problem when i give a comand that will change the remote system > prompt. I think ruby is expecting the default caracter "#", but the command > will change it to ">", and the script don't run. > > require 'net/ssh' > Net::SSH.start('172.16.20.78', 'root', :password => "passwd" ) do | > ssh| > output = ssh.exec!("su - sysad") > end > > Could you please tell me how could I change the "expected" prompt? > > Best regards, > GP > > --001636498e51de18580462be8cac--