home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3890 < prev    next >
Encoding:
Internet Message Format  |  1992-09-10  |  1.5 KB

  1. Path: sparky!uunet!ogicse!plains!plains.NoDak.edu!malenovi
  2. From: malenovi@plains.NoDak.edu (Malenovic Nikola V.)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: Automating telnet
  5. Keywords: telnet, here documents, automatic login
  6. Message-ID: <20265@plains.NoDak.edu>
  7. Date: 10 Sep 92 16:48:42 GMT
  8. Article-I.D.: plains.20265
  9. References: <ellis.715831025@nova>
  10. Sender: Unknown@plains.NoDak.edu
  11. Organization: North Dakota Higher Education Computing Network
  12. Lines: 25
  13. Nntp-Posting-Host: plains.nodak.edu
  14.  
  15. In article <ellis.715831025@nova> ellis@nova.gmi.edu (Stew Ellis) writes:
  16. >  telnet remote.host << EOF
  17. >  loginname
  18. >  EOF
  19. >
  20. >The man page for telnet is of no help on this.  I am probably missing
  21. >something obvious to someone, but it is not obvious to me. :(
  22. >
  23. >Thank you for any help.
  24. >  R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  25.  
  26. Since I had a lot of people asking me, I think this stuff oughta be in FAQ...
  27. (pliz pliz pliz put it there...)...
  28.  
  29. the answer to above question is : the easiest way is to write your own
  30. 'telnet'. It is fairly easy under BSD-style machines - I have a code (two
  31. short procedures + main) that is fairly short, and does the job of opening
  32. the socket to the address I want and to the port I want. The problem is that
  33. you still have to do the programming such as sending commands via the socket
  34. etc. but, IMHBO, it's piece of cake... In case anyone wants I can bounce a
  35. copy of source (in C) code...
  36.  
  37. Nikola Malenovic
  38. malenovi@plains.nodak.edu
  39. --
  40.