home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / unix / shell / 3837 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!spool.mu.edu!umn.edu!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Automating telnet
  5. Message-ID: <ellis.715831025@nova>
  6. Summary: Does telnet read here documents?
  7. Keywords: telnet, here documents, automatic login
  8. Sender: news@zip.eecs.umich.edu (Mr. News)
  9. Organization: GMI Engineering&Management Institute, Flint, MI
  10. Date: Mon, 7 Sep 1992 01:57:05 GMT
  11. Lines: 24
  12.  
  13.  
  14. I am trying to write a shell script to login to a remote gopher program.
  15. The gopher program runs at login for user gopher, with no passwd.
  16.  
  17. I have seen scripts before that automated ftp or telnet login, but I cannot
  18. find them.
  19.  
  20. I would have thought that telnet would read a here document in an orderly
  21. fashion so something like the following would work:
  22.   telnet remote.host << EOF
  23.   loginname
  24.   EOF
  25.  
  26. The man page for telnet is of no help on this.  I am probably missing
  27. something obvious to someone, but it is not obvious to me. :(
  28.  
  29. Thank you for any help.
  30.  
  31.  
  32. --
  33. --                                                        ___________________
  34.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  35.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  36.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  37.