From: Nate Johnston <nmj3e@virginia.edu>
To: ZSH Users <zsh-users@math.gatech.edu>
Subject: Re: Suggestions for auto-login script for ZSH?
Date: Mon, 25 Nov 1996 16:57:09 -0500 (EST) [thread overview]
Message-ID: <Pine.A32.3.93.961125165151.11434B-100000@faraday.clas.Virginia.EDU> (raw)
In-Reply-To: <199611252101.QAA01879@redwood.skiles.gatech.edu>
On Mon, 25 Nov 1996, Richard Coleman wrote:
> > I'm trying to write a script that would allow be to make telnet login (or
> > ftp login) processes automated. Here's what I tried:
> >
> > 1. ftp
> > 2. login
> > 3. password
> > 4. get a particular file
> > 5. exit :)
>
> The problem is that the login process reads the tty directly,
> when getting the password. No amount of shell redirection can
> get around this.
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
I have seen this used to telnet to port 22 on a random host to sonnect to
sendmail and spoof one's return address.
For this man, however, that there is a mechanism already created to
do what he needs. Look up the man page on the .netrc file. It specifies
this sort of information for ftp depending on the hostname - quite
convenient, and better than this method.
--N.
next prev parent reply other threads:[~1996-11-25 22:25 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 [this message]
1996-11-25 22:34 ` Greg Badros
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.A32.3.93.961125165151.11434B-100000@faraday.clas.Virginia.EDU \
--to=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).