ssh in tcl/expect and restart

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I'm newbie in tcl and expect. I want to automate a test. I wrote a
script in tcl and make ssh connection in it to remotely do the test.
One step in the test is that I shoult restart the tested system, and
when the system is up again, carry on testing.
My problem is that the ssh connection breaks at restart. So I have to
make a new connection. How can I see, when can I do this (= when is
the system up) ?
Or does anybody know a better solution for this problem?



Site Timeline