How can I make a csh script that is doing a telnet with user and password but not terminating the telnet session?
I have the following:
#!/bin/sh
(sleep 1; echo "login\r"; sleep 1; echo "pass\r"; sleep 1) | telnet host
after entering the pass the session is terminated.
Any suggestions?
I have the following:
#!/bin/sh
(sleep 1; echo "login\r"; sleep 1; echo "pass\r"; sleep 1) | telnet host
after entering the pass the session is terminated.
Any suggestions?