Thread perl code um text files unix2dos konvertieren (37 answers)
Opened by cc at 2004-06-20 04:16

pq
 2004-06-30 15:55
#83641 #83641
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=cc,21.06.2004, 10:29]geht aber immer noch nicht,obwhol der pfad zum file stimmt
Code: (dl )
1
2
3
4
5
6
...
my $file = "/home/files/testfile.txt";
...
open FILE, '<', $file or die "open $file $!";
...
$ftp->put(\*FILE, $file) or die "$server: cannot put $file: " . $ftp->message;


Net::FTP=GLOB(0x830bb28)>>> STOR /home/files/testfile.txt
Net::FTP=GLOB(0x830bb28)<<< 550 /home/files/testfile.txt: The system cannot find the path specified.
X.X.X.X: cannot put /home/files/testfile.txt: /home/files/testfile.txt: The system cannot find the path specified.[/quote]
sicher, dass der pfad auf dem lokalen system und auf dem remote-server
der gleiche ist?
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread perl code um text files unix2dos konvertieren