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

  1. Path: sparky!uunet!mcsun!Germany.EU.net!pki-nbg!hitkw14!smr
  2. From: smr@hitkw14.pki-nbg.philips.de (S.Riehm)
  3. Newsgroups: comp.unix.questions
  4. Subject: Re: .netrc entry for default ftp connects
  5. Keywords: ftp netrc
  6. Message-ID: <smr.716471679@hitkw14>
  7. Date: 14 Sep 92 11:54:39 GMT
  8. References: <1992Sep12.184012.2519@lambda.msfc.nasa.gov> <1992Sep12.215444.9640@bradley.bradley.edu>
  9. Sender: news@pki-nbg.philips.de
  10. Lines: 42
  11.  
  12. guru@camelot.bradley.edu (Jerry Whelan) writes:
  13.  
  14. >In article <1992Sep12.184012.2519@lambda.msfc.nasa.gov> thigpen@lambda.msfc.nasa.gov (Keith Thigpen) writes:
  15. >-} .netrc works fine if I specify the machine that I want to contact. Often, tho,
  16. >-} I want to jump out on the net and use anonymous ftp.
  17.  
  18. >Well, then use this script (suitably modified for your situation) in
  19. >place of ftp:
  20.  
  21. [script deleted]
  22.  
  23. eek! that script adds a line to the end of your .netrc file every time
  24. you ftp somewhere... why don't you just read the man page to get the
  25. answer...
  26.  
  27. ---
  28. netrc(4)
  29.  
  30.     default             This is the same as 'machine name' except that
  31.             default matches any name.  There can be only
  32.             one default token, and it must be after all
  33.             machine tokens.  This is normally used for
  34.             ftp as follows:
  35.  
  36.             default login anonymous password user@site
  37.  
  38.             This provides automatic anonymous FTP login
  39.             to machines not specified in .netrc.  This
  40.             can be overridden in ftp by using the -n flag
  41.             to disable auto-login.
  42. ---
  43.  
  44. need I say more?
  45.  
  46. catchya
  47.  
  48. -----------------------------------------------------------------
  49. Stephen Riehm        Configuration Management       _-_|\ 
  50. smr@pki-nbg.philips.de    Philips Kommunikations Industrie  /     \
  51. Work: +49 911 526 2975    N|rnberg, Germany          \_.-.*/
  52. Fax:  +49 911 526 2095    "I was there, now I am here!"           v 
  53. "My company speaks another language, I CAN'T speak on it's behalf"
  54.