KioskeaKioskeaCommentCaMarcheSign up, it's free !
Saturday May 17, 2008 - 11:03:02 pm BST

Telnet script or batch file

Search : in
Telnet script or batch file
par pentiumworld
 Threaded discussions
Statut : Not resolved
Tuesday April 8, 2008 01:34:47 PM
Hello,


I want to build a script or a batch file that I can set to run on a daily basis that will telnet to a device and then send commands to it. Basically it would need to telnet and then run a command and exit out of the device. I was thinking I could do this with a batch file and run it as a Scheduled task.

Any help would be greatly apperciared.
Configuration: Windows XP
Internet Explorer 6.0
Reply to pentiumworld  Report this message to moderators Go to last message

1


  • This message seems useful, vote!
  • Report this message to moderators
By queenss, on Tuesday April 8, 2008 03:57:09 PM Threaded discussions 
Hai

You can't script telnet without expect .exe. You could also use netcat ( nc.exe ), Which would probably be easier With netcat you can redirect a text file with all your telnet commands in it to nc.exe like this.


nc ip_address-p 23< cmds.txt
Reply to queenss
Currently no message on this subject
Reply
Message title :
Your nick:
Your E-mail :
Message: 
  •  
  •  
Options: Get the answers by mail.
 

Help