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 JAA10200 for ; Tue, 26 Nov 1996 09:51:59 +1100 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id RAA02881; Mon, 25 Nov 1996 17:43:10 -0500 (EST) Resent-Date: Mon, 25 Nov 1996 17:34:00 -0500 (EST) Date: Mon, 25 Nov 1996 14:34:21 -0800 (PST) From: Greg Badros To: Nate Johnston cc: 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: <"jeI-h1.0.Gg.NxXco"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/531 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, 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). Greg J. Badros 8816 Nesbit Ave N., Apt 303 gjb@cs.washington.edu Seattle, WA 98103-4067 http://www.cs.washington.edu/homes/gjb