Thread Net::FTP (0 answers)
Opened by iostream at 2008-07-17 01:33

iostream
 2008-07-17 01:33
#112231 #112231
User since
2008-07-14
11 Artikel
BenutzerIn
[default_avatar]
ich kann zwar connecten,aber der Upload funktioniert nicht, die file test.txt liegt im selben Verzeichniss wie das Perl Script...

mein Script:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
use Net::FTP;

$ftp = Net::FTP->new("111.111.111.111", Debug => 0, Port => 1069)
or die "Cannot connect to 111.111.111.111: $@";

$ftp->login("user",'login')
or die "Cannot login ", $ftp->message;

$ftp->put("test.txt")
or die "get failed ", $ftp->message;

$ftp->quit;



und meine Ausgabe:

Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
line 10
get failed The Server is running for 7 Day(s), 19 Hour(s), 24 Minute(s) and 29 S
econd(s)
You are connecting from 111.111.111.111
There is/are 3 User(s) connected right now
12 User(s) logged in since server was started
0 Kbyte Uploaded
3 Kbyte Downloaded
0.000 Kbyte/s average server throughput
0.000 Kbyte/s current bandwidth use
command not understood.

View full thread Net::FTP