sh Script to telnet

George Toft plug-discuss@lists.plug.phoenix.az.us
Thu, 06 Mar 2003 18:57:51 -0500


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!