home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!plains!plains.NoDak.edu!malenovi
- From: malenovi@plains.NoDak.edu (Malenovic Nikola V.)
- Newsgroups: comp.unix.shell
- Subject: Re: Automating telnet
- Keywords: telnet, here documents, automatic login
- Message-ID: <20265@plains.NoDak.edu>
- Date: 10 Sep 92 16:48:42 GMT
- Article-I.D.: plains.20265
- References: <ellis.715831025@nova>
- Sender: Unknown@plains.NoDak.edu
- Organization: North Dakota Higher Education Computing Network
- Lines: 25
- Nntp-Posting-Host: plains.nodak.edu
-
- In article <ellis.715831025@nova> ellis@nova.gmi.edu (Stew Ellis) writes:
- > telnet remote.host << EOF
- > loginname
- > EOF
- >
- >The man page for telnet is of no help on this. I am probably missing
- >something obvious to someone, but it is not obvious to me. :(
- >
- >Thank you for any help.
- > R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765 / _____ ______
-
- Since I had a lot of people asking me, I think this stuff oughta be in FAQ...
- (pliz pliz pliz put it there...)...
-
- the answer to above question is : the easiest way is to write your own
- 'telnet'. It is fairly easy under BSD-style machines - I have a code (two
- short procedures + main) that is fairly short, and does the job of opening
- the socket to the address I want and to the port I want. The problem is that
- you still have to do the programming such as sending commands via the socket
- etc. but, IMHBO, it's piece of cake... In case anyone wants I can bounce a
- copy of source (in C) code...
-
- Nikola Malenovic
- malenovi@plains.nodak.edu
- --
-