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 with the same process.
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 with the same process.