5

regarding TCL expert SSH script

view full story
linux-howto

http://www.unix.com – Hi, I am in learning curve in the Tcl/expert language. I have the following program for ssh Code: #!/dsbutest/autotest/ats_current/bin/expect set UserID "user" set Password "key" set remotehost [lindex $argv 1] spawn ssh -l $UserID $remotehost expect -re ".*" send "yes\r" #this one adding the RSA key permanently expect -re ".*asswor.*" send "$Password\r" expect -re ".*oot.*" My problem is that when I execute the script it logs in perfectly to the linux machine which I want too SSH , but after the end of the script (HowTos)