Neil Croft wrote in a message to All:
NC> I've got what appears to be a really simple problem and I'm
NC> stuffed for an answer. I want to create an icon which, when
NC> clicked on, opens a telnet session to a router, enters the
NC> username and password, issues a sh sm command to grab the
NC> log, and then waits for a key-press before exiting.
NC> Creating the icon I can do. Feeding a text file as input to
NC> telnet however is proving somewhat harder. Any offers?
Use VMODEM from SIO and your favorite comm program and write a script to do
what you want based upon timing and prompts sent back from the remote
session.
You might get telnet {site} < text.file to work for you but my guess is
the timing will never work for you. VMODEM and something like ZOC or any term
software will do what you want and even be able to log the entire session in
a file and understand when it is time to leave etc...
Dave Calafrancesco, Team OS/2
dave@drakkar.mhv.net
... They got the library at Alexandria, they're not getting mine!
---
---------------
* Origin: Druid's Grove BBS - (914)/876-2237 (1:2624/306)
|