sh Script to telnet

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: George Toft
Date:  
Subject: sh Script to telnet
Anoop Gururaj wrote:
> =


> Dear Gurus,
> =


>                Can anyone give me the shell script where in i can telne=

t
> to different unix host with username and passwd and execute another s=

hell
> script in the remote host..??
> i need to write a cron ..the cron must execute a sh script which telne=

ts to
> another host with username/pass and execute another shell script in th=

e
> remote server.
> Kindly help me in this.
> Thanks a lot in advance.
> =


> Regards,
> =


> Anoop



Expect was created to perform this type of stuff. Linux Journal had an
excellent tutorial on it about 4 years ago - go to their site and
search.

George
-- =

Discover . . .         | Free Computer Security Information
        <=B7=B7=B7> Secure   | http://www.georgetoft.com/security
         Networking    | =


@http://georgetoft.com | Lock your box - keep your affairs private!