Chon-Ji has asked for the wisdom of the Perl Monks concerning the following question:
This code is able to transfer file but the problem is the fileszie of the file transaferred is alaways less than the source file. For instance, my soucrce file is supposed to be 11046 bytes but the transffered file is only 10257.$ftpobj = Net::FTP -> new ($URL) or die "unable to connect\n"; print "Connection successful\n"; print "retrieving file from medix\n"; $ftpobj -> login($user, $pass); $ftpobj -> cwd ($src_dir); @files=$ftpobj->dir; foreach(@files) { print "$_\n"; } $ftpobj -> get ("INPUT", "$dest_dir/OUTPUT"); $ftpobj -> quit; print "file size ",-s "$dest_dir/OUTPUT"," bytes\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl ftp
by BrowserUk (Patriarch) on Jul 03, 2006 at 02:24 UTC | |
by Chon-Ji (Novice) on Jul 03, 2006 at 02:35 UTC | |
by BrowserUk (Patriarch) on Jul 03, 2006 at 02:42 UTC | |
|
Re: Perl ftp
by dorko (Prior) on Jul 03, 2006 at 02:33 UTC | |
by Chon-Ji (Novice) on Jul 03, 2006 at 02:46 UTC |