[plug] Automated Telneting?

Buddrige, David david.buddrige at mitswa.com.au
Wed Aug 4 17:46:58 WST 1999


I think the command you are looking for is rsh

see man rsh for details.

regards

David Buddrige.

> -----Original Message-----
> From:	Paul Baumgarten [SMTP:paul at kcc.wa.edu.au]
> Sent:	Wednesday, August 04, 1999 5:38 PM
> To:	Perth Linux Users Group
> Subject:	[plug] Automated Telneting?
> 
> 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