http://www.oracleobserver.com/?q=node/25
#!/usr/bin/expect # this script opens a ssh session and then logs is using a password containing a $ # then sudo over to the oracle account spawn ssh $argv expect "password:" send "Jan\$6rath\r" http://davidmasclet.gisgraphy.com/post/2010/03/25/Automatiser-les-interactions-avec-des-scripts-bashs
home page
http://expect.sourceforge.net/
http://www.nist.gov/el/msid/expect.cfm
Pour automatiser le telnet sous windwos il y a un ptt exe nomé telnet scripting tool v1.0
Aucun commentaire:
Enregistrer un commentaire