macd68, on the note of bad design..i agree. i am working with code written by someone else so cant really do much.
could you elaborate your solution a bit please.
macd68, thanks very much. i had tried 'spawn' before, which works. but the problem is, because of the way in which code is written, using spawn is not possible. i'll have to do massive changes in the code.
is there any way to change to root user without spawning?
or, (this migh not entirely be...
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.