home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!spool.mu.edu!umn.edu!umeecs!nova!ellis
- From: ellis@nova.gmi.edu (Stew Ellis)
- Subject: Automating telnet
- Message-ID: <ellis.715831025@nova>
- Summary: Does telnet read here documents?
- Keywords: telnet, here documents, automatic login
- Sender: news@zip.eecs.umich.edu (Mr. News)
- Organization: GMI Engineering&Management Institute, Flint, MI
- Date: Mon, 7 Sep 1992 01:57:05 GMT
- Lines: 24
-
-
- I am trying to write a shell script to login to a remote gopher program.
- The gopher program runs at login for user gopher, with no passwd.
-
- I have seen scripts before that automated ftp or telnet login, but I cannot
- find them.
-
- I would have thought that telnet would read a here document in an orderly
- fashion so something like the following would work:
- 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 / _____ ______
- Humanities & Social Science, GMI Eng.& Mgmt. Inst. / / / / / /
- Flint, MI 48504 ellis@nova.gmi.edu /________/ / / / /
-