ftp exitcode
Dietmar Goldbeck
dietmar.goldbeck at acm.org
Fri May 14 13:26:15 CEST 2004
On Fri, May 14, 2004 at 12:40:02PM +0200, Hans-Joachim Hoetger wrote:
>
> Moin,
> that sucks!
>
> rout at karoshi [/usr/local/fw-1/scripts] >>ftp 195.71.100.138 <<EOT
> ? quit
> ? EOT
> ftp: connect: Connection timed out
> rout at karoshi [/usr/local/fw-1/scripts] >>echo $?
> 0
> rout at karoshi [/usr/local/fw-1/scripts] >>
>
Hi,
wenns nicht unbedingt shell sein muss, tipp doch einfach
die manpage von Net::FTP ab:
Achtung get durch put ersetzen :-)
Ciao
Dietmar
Net::FTP(3) User Contributed Perl Documentation Net::FTP(3)
NAME
Net::FTP - FTP Client class
SYNOPSIS
use Net::FTP;
$ftp = Net::FTP->new("some.host.name", Debug => 0)
or die "Cannot connect to some.host.name: $@";
$ftp->login("anonymous",'-anonymous@')
or die "Cannot login ", $ftp->message;
$ftp->cwd("/pub")
or die "Cannot change working directory ", $ftp->message;
$ftp->get("that.file")
or die "get failed ", $ftp->message;
$ftp->quit;
DESCRIPTION
"Net::FTP" is a class implementing a simple FTP client in
Perl as described in RFC959. It provides wrappers for a
subset of the RFC959 commands.
[...]
--
Alles Gute / best wishes
Dietmar Goldbeck E-Mail: dietmar.goldbeck at acm.org
Reporter (to Mahatma Gandhi): Mr Gandhi, what do you think of Western
Civilization? Gandhi: I think it would be a good idea.
More information about the Linux
mailing list