Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Net::FTP on OSX10.3 corrupting files

by mandog (Curate)
on Nov 06, 2003 at 23:36 UTC ( #305191=note: print w/ replies, xml ) Need Help??


in reply to Net::FTP on OSX10.3 corrupting files

Have you compared a file uploaded with fetch to a file uploaded with Net::FTP ?

ls -l diff filea fileb strings filea > a.txt strings fileb > b.txt diff a.txt b.txt | more

It might be easier to compare non binary files as a control, but you can force diff to do binary files


Comment on Re: Net::FTP on OSX10.3 corrupting files
Download Code
Re: Re: Net::FTP on OSX10.3 corrupting files
by manchot (Initiate) on Nov 07, 2003 at 01:20 UTC

    Yes, the files are slightly different sizes, and diff-a spits out a ton of junk (remember, they're mpeg4s, and 40+MB each.. )

    Comparing the strings output, they starts out similar, and with some binary looking characters in them, too..

    43810573 Nov 06 16:25 x.mp4 (Net::FTP)
    43811351 Nov 06 13:45 y.mp4 (Fetch)

    %> head *.txt
    ==> x.txt<==
    ftypmp42 mp42isom kmoov lmvhd çġtrak \tkhd $edts elst çmmdia mdhd
    ==> y.txt <==
    ftypmp42 mp42isom kmoov lmvhd çġtrak \tkhd $edts elst çmmdia mdhd

    had to stop the strings, cuz each file was generating around 24 MEGs of "strings"!!

    Clearly, fetch and Net::FTP are not doing the same thing!

Re: Re: Net::FTP on OSX10.3 corrupting files
by Roger (Parson) on Nov 07, 2003 at 13:34 UTC
    Just to add that there is a gnu program called bdiff that specializes in diffing binary files. And also bvi to edit binary files.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://305191]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (8)
As of 2015-07-03 08:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (49 votes), past polls