Leser: 2
|< 1 2 3 4 >| | 38 Einträge, 4 Seiten |
binmode FILEHANDLE, 'encoding(cp850)' or die $!;
binmode FILEHANDLE, 'encoding(cp850)' or die $!;
1
2
3
4
5
6
7
8
my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3);
$ftp or die "$server: cannot connect: $@";
$ftp->login ($user,$passwd) or
die "$_: Could not login: " . $ftp->message;
# Put file
$ftp->put ($File) or
die "$server: cannot put $file: " . $ftp->message;
$ftp->quit;
1
2
3
4
5
6
7
8
9
my $ftp = Net::FTP->new ($server, Timeout => 9000, Debug => 3);
$ftp or die "$server: cannot connect: $@";
$ftp->login ($user,$passwd) or die "$_: Could not login: " . $ftp->message;
# Put file (Parameter kann Filename oder Handle sein)
open FILE, '<', $file or die "open $file $!";
binmode FILE, 'encoding(cp850)' or die $!;
$ftp->put (\*FILE) or die "$server: cannot put $file: " . $ftp->message;
close FILE;
$ftp->quit;
$ftp->put (\*FILE) or die "$server: cannot put $file: " . $ftp->message;
$ftp->put(local,server);
|< 1 2 3 4 >| | 38 Einträge, 4 Seiten |