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 ?
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.