From: Greg Russell on 2 Feb 2010 17:05 Will someone explain please why these files differ after I just cp'd them? The file sizes are about 4.4 GB: $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ $ cp -v /tmp/ssc_1992/dvd.iso ./ssc_1992_highlights.iso `/tmp/ssc_1992/dvd.iso' -> `./ssc_1992_highlights.iso' $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ It's very confusing to me, and doesn't help the script execution we're trying to employ.
From: Grant Edwards on 2 Feb 2010 17:12 On 2010-02-02, Greg Russell <me(a)invalid.com> wrote: > Will someone explain please why these files differ after I just cp'd > them? The file sizes are about 4.4 GB: > > $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso > Binary files ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ > > $ cp -v /tmp/ssc_1992/dvd.iso ./ssc_1992_highlights.iso > `/tmp/ssc_1992/dvd.iso' -> `./ssc_1992_highlights.iso' > > $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso > Binary files ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ > > It's very confusing to me, and doesn't help the script execution we're > trying to employ. Either the "cp" didn't work or the "diff" didn't work. What does "cmp" say about the files? -- Grant Edwards grante Yow! Thank god!! ... It's at HENNY YOUNGMAN!! visi.com
From: Greg Russell on 2 Feb 2010 17:31 On Tue, 02 Feb 2010 22:12:28 +0000, Grant Edwards wrote: >> Will someone explain please why these files differ after I just cp'd >> them? The file sizes are about 4.4 GB: >> >> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >> >> $ cp -v /tmp/ssc_1992/dvd.iso ./ssc_1992_highlights.iso >> `/tmp/ssc_1992/dvd.iso' -> `./ssc_1992_highlights.iso' >> >> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >> >> It's very confusing to me, and doesn't help the script execution we're >> trying to employ. > > Either the "cp" didn't work or the "diff" didn't work. > > What does "cmp" say about the files? $ cmp -l ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso 1827673645 207 217 4243191341 263 273 .... so apparently the "diff" output was correct. I can't imagine why the cp would fail with no stderr.
From: The Natural Philosopher on 2 Feb 2010 17:40 Greg Russell wrote: > On Tue, 02 Feb 2010 22:12:28 +0000, Grant Edwards wrote: > >>> Will someone explain please why these files differ after I just cp'd >>> them? The file sizes are about 4.4 GB: >>> >>> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >>> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >>> >>> $ cp -v /tmp/ssc_1992/dvd.iso ./ssc_1992_highlights.iso >>> `/tmp/ssc_1992/dvd.iso' -> `./ssc_1992_highlights.iso' >>> >>> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >>> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >>> >>> It's very confusing to me, and doesn't help the script execution we're >>> trying to employ. >> Either the "cp" didn't work or the "diff" didn't work. >> >> What does "cmp" say about the files? > > $ cmp -l ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso > 1827673645 207 217 > 4243191341 263 273 > > ... so apparently the "diff" output was correct. I can't imagine why the > cp would fail with no stderr. I don't think it has.
From: Greg Russell on 2 Feb 2010 17:48 On Tue, 02 Feb 2010 22:40:15 +0000, The Natural Philosopher wrote: > Greg Russell wrote: >> On Tue, 02 Feb 2010 22:12:28 +0000, Grant Edwards wrote: >> >>>> Will someone explain please why these files differ after I just cp'd >>>> them? The file sizes are about 4.4 GB: >>>> >>>> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >>>> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >>>> >>>> $ cp -v /tmp/ssc_1992/dvd.iso ./ssc_1992_highlights.iso >>>> `/tmp/ssc_1992/dvd.iso' -> `./ssc_1992_highlights.iso' >>>> >>>> $ diff ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso Binary files >>>> ./ssc_1992_highlights.iso and /tmp/ssc_1992/dvd.iso differ >>>> >>>> It's very confusing to me, and doesn't help the script execution >>>> we're trying to employ. >>> Either the "cp" didn't work or the "diff" didn't work. >>> >>> What does "cmp" say about the files? >> >> $ cmp -l ./ssc_1992_highlights.iso /tmp/ssc_1992/dvd.iso 1827673645 207 >> 217 >> 4243191341 263 273 >> >> ... so apparently the "diff" output was correct. I can't imagine why >> the cp would fail with no stderr. > > I don't think it has. Would you qualify that statement with your reasoning, please.
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: copy a file while it is actively being written Next: Mobile Phone Compatibility = Dead End |