Communications and Wireless
1825719 Members
2950 Online
109686 Solutions
New Discussion

telneting issues!! Frantically in need

 
Brian_213
Occasional Contributor

telneting issues!! Frantically in need

I've been trying to telnet from a WinXP machine to a Linux Kernel machine. I need this to be done from .bat file and text file on the windows machine. I have been trying to use the following command

telnet 192.168.0.58 > toDo.txt

But all I get is a Welcome to MS Telnet message and when I go to check via manual telnet to see if it was done I find out that nothing infact happend.

Any suggestions!!!!!!!!
1 REPLY 1
Ron Kinner
Honored Contributor

Re: telneting issues!! Frantically in need

Since you are not logging on I don't see why it would do anything. I've never tried it from a DOS prompt but the following method works quite nicely for UNIX:

(sleep 5
echo "yourlogin\r"
sleep 1
echo "yourpassword\r"
sleep 3
echo "somecommand\r"
sleep 1
echo "logout\r"
echo "\r") |telnet 10.1.2.1

You don't always need the \r at the end of each line - depends on what you are telneting to wants.

Ron