From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-request@euclid.skiles.gatech.edu Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.6/8.7.3) with ESMTP id PAA10880 for ; Tue, 26 Nov 1996 15:08:57 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id XAA09822; Mon, 25 Nov 1996 23:03:39 -0500 (EST) Resent-Date: Mon, 25 Nov 1996 22:54:31 -0500 (EST) Date: Mon, 25 Nov 1996 21:55:17 -0600 (CST) From: "I. Dwayne Koonce" To: ZSH Users Subject: Re: Suggestions for auto-login script for ZSH? In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"CXWHv2.0.aN2.tdcco"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/534 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Mon, 25 Nov 1996, Greg Badros wrote: > On Mon, 25 Nov 1996, Nate Johnston wrote: > > > Actually, I have found that this is not true. For example, this works > > perfectly fine for me: > > > > echo "ftp mywhateverhost > > $LOGNAME > > mypassword > > bin > > get flotsam.tar > > bye" > .tmpfile > > telnet myloginhost < .tmpfile > ftp.log > > And this could be better written using HERE documents as > > telnet myloginhost < ftp.log > ftp mywhateverhost > $LOGNAME > mypassword > bin > get flotsam.tar > bye > END_OF_SCRIPT > > But it's a bad idea to have passwords in scripts, or as plaintext > anywhere (like in .netrc). Not necessarily; what I used to used to use my .netrc for was automating logins to anonymous ftp servers, where you password is your e-mail address, and not exactly sensitive information :) But if you use ftp very much, I highly recommend installing ncftp, which you can find on ftp.probe.net, in /pub/ncftp. It automatically maintains the equivalent of a .netrc (although it doesn't record passwords for non-anonymous sites :). For hosts that you have an account on, you can create a .rhosts file (caution: this can be a security risk; RTFM before trying). This will allow you to retrieve files with rcp, and login automatically with rlogin. ____________________________________________________________________________ I. Dwayne Koonce E-mail: idk@metronet.com ____________________________________________________________________________ "It's dangerous to be right when the government is wrong." --Voltaire