home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15979 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.6 KB  |  48 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!zzsb
  3. From: zzsb@kursix.rrzn.uni-hannover.de (Wolfgang Sander-Beuermann)
  4. Subject: Re: Need to login many times, but type passwd once.
  5. Message-ID: <1993Jan27.063711.957@newsserver.rrzn.uni-hannover.de>
  6. Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
  7. Organization: RRZN
  8. X-Newsreader: Tin 1.1 PL4
  9. References: <8838@news.duke.edu>
  10. Date: Wed, 27 Jan 1993 06:37:11 GMT
  11. Lines: 35
  12.  
  13. >It seems to me that it would be best to discuss this issue with your
  14. >system administrator, rather than ask the net to help you try to
  15. >circumvent local policy. If it is indeed important, perhaps you can
  16. >convince him/her to help you.
  17.  
  18. Just in case, you can not convince your management to use the (better)
  19. rsh-method, here is a litlle script, which does the same thing with
  20. telnet:
  21.  
  22. ===================== Script ============================
  23.  
  24.    user=YourUsername
  25.    passw=YourPassword
  26.    (\
  27.    sleep 5;\
  28.    echo "$user";\
  29.    sleep 10;\
  30.    echo "$passw";\
  31.    sleep 10;\
  32.    echo "AnyCommand(s)";\
  33.    sleep 5;\
  34.    echo "exit";\
  35.    sleep 5\
  36.    )\
  37.    | telnet AnyHost > tempfile 2> /dev/null
  38.  
  39. ====================== Script end ========================
  40.  
  41. You may not take out the sleep 5/10 lines, they are essential; if you
  42. have any problems with it, you might have to adjust those sleep times
  43. to your local conditions (i.e. make them longer or shorter).
  44.  
  45. Hope that helps, Wolfgang
  46.  
  47. Wolfgang Sander-Beuermann         zzsb@kursix.rrzn.uni-hannover.de
  48.