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