From: henri (henri_yudha@bca.co.id)
Date: Mon May 31 2004 - 04:25:12 EDT
Hi gurus ..
I'm try to automating telnet like this :
%telnet 10.222.222.22 99999
telnet> Trying 10.222.222.22...
Connected to 10.222.222.22.
Escape character is '^]'.
Available Services:
ASCII EXIT
And i must to type the ASCII manually.
So i've made the script scriptTelnet.sh :
#!/bin/sh
host=10.222.222.22
port=99999
ASCII=ASCII
echo open ${host} ${port}
sleep 3
echo ${ASCII}
sleep 3
------------------------
When i run the script :
% ./scriptTelnet | telnet > Log.txt
It's only back to prompt with Connection closed by foreign host.
What is the problem ? and how to fix it ?
Because i want to use the Log.txt file for logger.
Best regards,
Henri
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:28:45 EDT