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 ?
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|