zsh-users
 help / color / mirror / code / Atom feed
From: Greg Badros <gjb@cs.washington.edu>
To: Nate Johnston <nmj3e@virginia.edu>
Cc: ZSH Users <zsh-users@math.gatech.edu>
Subject: Re: Suggestions for auto-login script for ZSH?
Date: Mon, 25 Nov 1996 14:34:21 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.3.93.961125143202.6913L-100000@uni.cs.washington.edu> (raw)
In-Reply-To: <Pine.A32.3.93.961125165151.11434B-100000@faraday.clas.Virginia.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 <<END_OF_SCRIPT > 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



  reply	other threads:[~1996-11-25 22:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-25 19:08 Kosh
1996-11-25 19:47 ` Timothy Luoma
1996-11-25 20:20   ` Domenico Galli
1996-11-25 21:01 ` Richard Coleman
1996-11-25 21:52   ` Jose Unpingco
1996-11-25 21:57   ` Nate Johnston
1996-11-25 22:34     ` Greg Badros [this message]
1996-11-26  3:55       ` I. Dwayne Koonce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.3.93.961125143202.6913L-100000@uni.cs.washington.edu \
    --to=gjb@cs.washington.edu \
    --cc=nmj3e@virginia.edu \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).