in reply to telnet login script from W2K to unix box
...run a few commands at the command line (change shell, setenv etc)and then continue working on the unix box. How do I break out of the script on the remote machine?
Your Net::Telnet script is seen by your host as a single telnet access to it. When the script ends, the network connection is close and the host session is lost (login shell terminated).
You might also have other solutions involving a specific configuration of the pseudo-terminals of your destination host, but they are beyond my knowledge of the Unix system.
____
HTH, Dominique
My two favorites:
If the only tool you have is a hammer, you will see every problem as a nail. --Abraham Maslow
Bien faire, et le faire savoir...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: telnet login script from W2K to unix box
by paddyo (Initiate) on Jul 29, 2004 at 14:29 UTC | |
by dfaure (Chaplain) on Jul 30, 2004 at 07:16 UTC |