UUGRN

Re: ftp mit expect-script

From
Christian Weisgerber <naddy@...>
Date
Marco Lorig <mlorig@...> wrote:

> ich will per FTP ein File zu holen und das ganze automatisieren.
> Hat jemand vielleicht schon ein fertiges expect(1) script dafür?

Immer diese Leute mit ihrem antiken Net/2-ftp.
Wenn du kein modernes ftp(1) hast, nimm ncftp, wget, lynx, o.ä.

naddy@kemoauc[~] ftp ftp://ftp.tu-darmstadt.de/pub/X11/other/xlogout-1.1.tar.Z
Connected to sun26.hrz.tu-darmstadt.de.
220 sun26.hrz.tu-darmstadt.de FTP server (Version wu-2.5.0(1) Thu Sep 16 14:45:11 MET DST 1999) ready.
331 Guest login ok, send your complete e-mail address as password.
230-
230- Welcome to the anonymous FTP server at TU Darmstadt, Germany
230-
230- This is an experimental FTP server. If your FTP client crashes or
230- hangs shortly after login please try using a dash (-) as the first
230- character of your password. This will turn off the informational
230- messages that may be confusing your FTP client.
230-
230- All transfers are logged with your host name and email address.
230- If you don't like this policy, disconnect now!
230-
230- In case of problems, send mail to ftpadmin@...
230-
230- Local time is Wed Jan 31 15:06:39 2001
230-
230 User ftp logged in. Access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
250 CWD command successful.
250-Please read the file README
250- it was last modified on Mon Jul 24 18:23:33 1995 - 2016 days ago
250 CWD command successful.
local: xlogout-1.1.tar.Z remote: xlogout-1.1.tar.Z
227 Entering Passive Mode (130,83,47,112,22,67)
150 Opening BINARY mode data connection for xlogout-1.1.tar.Z (3466 bytes).
226 Transfer complete.
3466 bytes received in 0.57 seconds (5.93 KB/s)
221-You have transferred 3466 bytes in 1 files.
221-Total traffic for this session was 4877 bytes in 1 transfers.
221-Thank you for using the FTP service on sun26.hrz.tu-darmstadt.de.
221 Goodbye.

--
Christian "naddy" Weisgerber                          naddy@...

Thread

In reply to: ftp mit expect-script Marco Lorig <mlorig@...>