Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suggestions for auto-login script for ZSH?
- X-seq: zsh-users 528
- From: Domenico Galli <galli@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Suggestions for auto-login script for ZSH?
- Date: Mon, 25 Nov 1996 21:20:03 +0100 (MET)
- Cc: Kosh <mariah@xxxxxxxxxxxxxxxxx>
- In-reply-to: <Pine.LNX.3.95.961125144326.9280A-100000@xxxxxxxxxxxxxx>
For ftp you may try something like this:
ftp -n > ftp.log <<-EOF
open hostname
user username password
cd dirname
ascii
get filename
quit
EOF
Of course this is not safe, because you write your password in a file.
It's better to use rcp instead of ftp and rlogin instead of telnet.
Domenico Galli
On Mon, 25 Nov 1996, Timothy Luoma wrote:
>
> this is not a ZSH thing, this is a shell thing in general
>
> you are looking for the program "expect" from Don Libes which uses TCL to
> automate login processes.
>
> of course, rather than using 'telnet' you could use an .rhosts file and
> use rlogin....
>
> ftp to ftp.cme.nist.gov and goto pub/expect
>
> TjL
>
>
>
-------------------------------------------------------------------------------
Domenico GALLI
Dipartimento di Fisica dell'Universita' di Bologna and INFN, Sezione di Bologna
via Irnerio, 46, I-40126 Bologna - ITALY
Phone: (+39) 51 351027 Fax: (+39) 51 244380
e-mail: galli@xxxxxxxxxx
-
CERN PPE LR 22 R-006, Route de Meyrin, CH-1211 Geneve 23, Switzerland
Phone: (+41) 22 767 2166 (+41) 22 767 8259 (+41) 22 767 6609
e-mail: domenico.galli@xxxxxxx
-
DESY, GEB. 66, ZI. 6, Notkestrasse, 85, 22607 Hamburg, Germany
Phone: (+49) 40 8998 4545
e-mail: galli@xxxxxxxxxxxxxx
-------------------------------------------------------------------------------
Messages sorted by:
Reverse Date,
Date,
Thread,
Author