When I run the script on my system, it runs for a while then stops with the following error ...

C:\tmp\Shared\Downloads>perl sum.pl -R c:/data/db 32768 aa8fe23d2d4c2495ff521b2efbefd30d c:/data/db/collection-0 +-3854299608590736422.wt 90112 540e61cd865a1c8e72255d658c00840b c:/data/db/collection-0 +-6126630059692173099.wt ... c:/data/db/index-4105-3854299608590736422.wt sum.pl[99] FATAL: Failed to open 'c:/data/db/mongod.lock' (Permission + denied)

I tried putting an if(-r $fname) around the md5 calculation, but I still get the same error.

Any ideas on how I can modify the script to skip past this file ?

In reply to Re: MD5 checksums for Windows by aussiecoder
in thread MD5 checksums for Windows by golux

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.