Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am able to successfully ftp the below files,but the thing is the sizes of the files are not at all right?what am I missing?is there any mode I need to set before copying?
#!/usr/bin/perl -w use strict; use warnings; use Net::Telnet; use Net::FTP; my $ftp = Net::FTP->new("192.168.0.1", Debug => 0) or die "Cannot connect to the target: $@"; $ftp->login("root","root") or die "Cannot login ", $ftp->message; $ftp->cwd("/mnt/files") or die "Cannot change working directory ", $ftp->message; $ftp->put("data.mbn") or die "put failed ", $ftp->message;; $ftp->put("image.elf") or die "put failed ", $ftp->message; $ftp->quit();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sizes of copied files are not right
by roboticus (Chancellor) on Apr 21, 2011 at 18:03 UTC | |
|
Re: Sizes of copied files are not right
by mikeraz (Friar) on Apr 21, 2011 at 18:02 UTC | |
by Anonymous Monk on Apr 21, 2011 at 18:05 UTC | |
by mikeraz (Friar) on Apr 21, 2011 at 18:11 UTC |