home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!uwvax!cs.wisc.edu!shubu
- From: shubu@cs.wisc.edu (Shubhendu Mukherjee)
- Newsgroups: comp.unix.questions
- Subject: Re: .netrc entry for default ftp connects
- Message-ID: <SHUBU.92Sep14090817@green.cs.wisc.edu>
- Date: 14 Sep 92 15:08:16 GMT
- References: <1992Sep12.184012.2519@lambda.msfc.nasa.gov>
- <1992Sep12.215444.9640@bradley.bradley.edu> <smr.716471679@hitkw14>
- Sender: news@cs.wisc.edu (The News)
- Organization: Univ. of Wisconsin @ Madison, CS Dept.
- Lines: 54
- In-Reply-To: smr@hitkw14.pki-nbg.philips.de's message of 14 Sep 92 11:54:39 GMT
-
- >>>>> In article <smr.716471679@hitkw14>, smr@hitkw14.pki-nbg.philips.de (S.Riehm) writes:
-
- SR> 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:
-
- SR> [script deleted]
-
- SR> eek! that script adds a line to the end of your .netrc file every time
- SR> you ftp somewhere... why don't you just read the man page to get the
- SR> answer...
-
- SR> ---
- SR> netrc(4)
-
- SR> default This is the same as 'machine name' except that
- SR> default matches any name. There can be only
- SR> one default token, and it must be after all
- SR> machine tokens. This is normally used for
- SR> ftp as follows:
-
- SR> default login anonymous password user@site
-
- SR> This provides automatic anonymous FTP login
- SR> to machines not specified in .netrc. This
- SR> can be overridden in ftp by using the -n flag
- SR> to disable auto-login.
- SR> ---
-
- SR> need I say more?
-
- SR> catchya
-
- Unfortunately, this doesn't seem to work on an Ultrix machine (not at least
- on this DEC 3100). I think this was mentioned before somewhere along the
- thread of discussion.
-
- Luck!
- -Shubu
-
-
-
-
-
- --
- -------------------------------------------------------------------------
- Shubhendu Sekhar Mukherjee University of Wisconsin @ Madison, C.Sc.
- Net:shubu@cs.{wisc,utexas}.edu [W]:(608) 262-1012 [H]:(608) 255-6322
- -------------------------------------------------------------------------
-