home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!usc!howland.reston.ans.net!bogus.sura.net!jhunix.hcf.jhu.edu!darwin.sura.net!newsserver.jvnc.net!yale.edu!ira.uka.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!zzsb
- From: zzsb@kursix.rrzn.uni-hannover.de (Wolfgang Sander-Beuermann)
- Subject: Re: Script to get the weather report
- Message-ID: <1993Jan22.115330.4365@newsserver.rrzn.uni-hannover.de>
- Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
- Organization: RRZN
- X-Newsreader: Tin 1.1 PL4
- References: <1993Jan18.152114.7333@gw.wmich.edu>
- Date: Fri, 22 Jan 1993 11:53:30 GMT
- Lines: 37
-
- automatic - telnet - login:
- ---------------------------
-
- [ ... deleted ... ]
- >>
- >> user=YourUsername
- >> passw=YourPassword
- >> (\
- >> sleep 5;\
- >> echo "$user";\
- >> sleep 10;\
- >> echo "$passw";\
- >> sleep 10;\
- >> echo "AnyCommand";\
- >> sleep 5;\
- >> echo "exit";\
- >> sleep 5\
- >> )\
- >> | telnet AnyHost > tempfile 2> /dev/null
- >>
-
- >This is great! I've been looking for a way to automate telnet logins for awile.
- >After testing this is seems to work great except for a small problem ;-).
-
- >Telnet->login->password all work fine, but the remote connection always closes
- >just after I get logged-in.
-
- >Any ideas?
-
- Yes: try playing around with the times in the sleep command; may be, your
- systems better like <sleep 20> or, opposite <sleep 3> or something else...
-
- If it still does not work, please mail me the output file (in the example
- called "tempfile"). I've tried the thing with several machines - no
- problem.
-
- Wolfgang Sander-Beuermann zzsb@kursix.rrzn.uni-hannover.de
-