The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
script to get file size s_linux Shell Programming and Scripting 25 08-26-2008 04:59 AM
compare file size from a output file from a script moustik Shell Programming and Scripting 7 11-07-2007 10:17 AM
Perl FTP - check file size rahulrathod Shell Programming and Scripting 1 02-20-2007 10:21 AM
file size script ejbrever UNIX for Dummies Questions & Answers 5 09-17-2006 11:17 AM
Get file size in c shell script? Dado Shell Programming and Scripting 6 09-26-2005 05:48 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-03-2009
mbb mbb is offline
Registered User
  
 

Join Date: Aug 2001
Location: UK
Posts: 104
FTP Perl Script File Size Mismatch.

Hello,

I've written a Perl script that copies a set of files from one server to another.

Prior to transferring a file the script gets the file size from the source system and compares this to the file size received in the target system.

Except that the file sizes are slightly different.

Although I don't issue a binary command, I am fairly sure the transfer is made binary because I am testing with a compressed copy of the 'ls' executable, which runs fine on the target system.

A manual transfer using FTP at the command line shows no difference in the file sizes and all my tests are the same. This only happened when run against my live systems and files.

Apart from the difference between binary and ASCII transfer, has anyone any ideas why the file sizes would be slightly different?

Thanks.
  #2 (permalink)  
Old 09-26-2009
figaro figaro is offline
Registered User
  
 

Join Date: Jan 2007
Posts: 271
Yes, I have noticed the same. Although I dont know the answer either, I take it that some metadata on the file could be kept on one system and not the other.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:42 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0