sh Script to telnet

Anoop Gururaj plug-discuss@lists.plug.phoenix.az.us
Fri, 07 Mar 2003 12:08:38 -0500


This is a multi-part message in MIME format.
--------------B702D8A8667E81FB3FF6C464
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The problem is that i am executing the script from linux machine to telnet to
another server which is not of linux..it has a hp-unix version...ssh is not
configured in the hp-unix machine..
so i need to make use of telnet only.... .

Regards,

Anoop


David Mandala wrote:

> man ssh don't use telnet insecure. Ssh can be set to autologin and
> execute one thing and only one thing.
>
> On Thu, 2003-03-06 at 18:11, Anoop Gururaj wrote:
> >  Dear Gurus,
> >
> >                Can anyone give me the shell script where in i can telnet
> >  to different unix host with username and passwd and execute another  shell
> > script in the remote host..??
> >  i need to write a cron ..the cron must execute a sh script which telnets  to
> > another host with username/pass and execute another shell script in  the
> > remote server.
> >  Kindly help me in this.
> >  Thanks a lot in advance.
> >
> >  Regards,
> >
> >  Anoop
> --
> David IS Mandala
> gpg fingerprint 8932 E7EF CCF5 1B8C 1B5C A92E C678 795E 45B2 D952
> Phoenix, AZ (480) 460-7545 HP, (602) 741-1363 CP
> http://www.them.com/~davidm/
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

--------------B702D8A8667E81FB3FF6C464
Content-Type: text/x-vcard; charset=us-ascii;
 name="anoop.gururaj.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Anoop Gururaj
Content-Disposition: attachment;
 filename="anoop.gururaj.vcf"

begin:vcard 
n:Gururaj;Anoop 
tel;fax:5559368
tel;work:5585163
x-mozilla-html:FALSE
url:http://www.timesofindia.com
org:The Times Of India Group.;Information Technology.
adr:;;;Bangalore;Karnataka;560001;India
version:2.1
email;internet:anoop.gururaj@timesgroup.com
title:Information Technology Group
note;quoted-printable:=0D=0A------------------------------=0D=0A-------------------------------=0D=0ATIMES IT - We Invent The Change=0D=0A-------------------------------=0D=0A-------------------------------
x-mozilla-cpt:bangalore.timesgroup.com;-2504
fn:Anoop Gururaj
end:vcard

--------------B702D8A8667E81FB3FF6C464--