[plug] Automated Telneting?

Paul Baumgarten paul at kcc.wa.edu.au
Wed Aug 4 17:38:06 WST 1999


I would like to be able to create a shell script that telnets into another
machine, executes some commands and closes the telnet connection.  Until now
I have tried using something along the lines of the following in my script
file.

# telnet 192.168.2.2 < inputstuff > outputstuff

Unfortunately it appears as though the input buffer is fed straght into the
keyboard buffer and the telnet session closes, all before it has done
anything.  The input buffer isn't waiting until telnet has established it's
connection and put up it's prompt.

If anyone knows of a way to make scripts do telneting I would appreciate it.

Paul Baumgarten (email: paul at kcc.wa.edu.au)
Information Systems Manager
Kingsway Christian College
157 Kingsway, Landsdale, WA, 6065
Ph: +61 8 9409 7078
Fx: +61 8 9409 6179




More information about the plug mailing list