i m new to tcl. running a script on a linux machine and have got this code in my script
exec su
expect{
-re "ssword:"{
send "password\r"
}
}
the script hangs when it gets to this block of code. ive tried putting an "interact" after "exec su" but get a message that cant interact...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.