[ILUG-BOM] AutoTelnet via Srcipt

Aseem Rane aseem@[EMAIL-PROTECTED]
Tue Oct 9 10:21:03 IST 2001


On Mon, 8 Oct 2001, Sandeep Periwal wrote:

> Hi,
> I need to write a script to 
> 1. Automatic [non-interactive] Telnet to a server.
> 2. Check if a file name "a.txt" exists in the 
>    /home/<telnetuser>
> 3. Send an email of file's existence / non-existence.
> 4. Disconnect Telnet
> 
> I do not understand how to do a Automatic
> [Non-interactive] telnet.

Try expect. it is designed to be used with the interactive
programms. it will solve your problem.

-- 
#################################################
#             Aseem Prakash Rane                #
#       http://aseemrane.topcities.com/         #
#        Registered Linux user #226057          #
#################################################




More information about the Linuxers mailing list