Leser: 1
8 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use strict;
use warnings;
use Net::FTP;
my $server = "Server";
my $user = "User";
my $password = "Password";
my $localfile = "Localdir/Localfile";
my $remotefile = "Remotedir/Remotefile";
print "connecting to server $server ... ";
my $ftp = Net::FTP->new($server) or die $!;
print "ok\n";
print "login ... ";
$ftp->login($user,$password) or die $!;
print "ok\n";
print "changing to binary mode ... ";
$ftp->binary or die $!;
print "ok\n";
print "transfer $remotefile ... ";
$ftp->put($localfile,$remotefile) or die $!;
print "ok\n";
$ftp->quit;
rm -r *
1
2
3
4
5
6
7
8
9
#!/usr/bin/perl -w
#
use strict;
my $var;
open($var,system('ftp'));
print $var;
close $var;
8 Einträge, 1 Seite |