in reply to Output isn't complete

I wonder, how large are these filesystems you are searching with this script? The reason I ask is that I do this type of thing quite often on very large filesystems (4tb+) and it does not take anywhere near 20 hours to run. (I think last time I timed it took less that 15 minutes). The other thing to note is you can merge find_subdirs and the other find into one section, that way you can use the magic stat var to speed up your tests across the board.

-Waswas

Replies are listed 'Best First'.
Re: Re: Output isn't complete
by Anonymous Monk on Jul 11, 2003 at 16:09 UTC
    I should have mentioned that I am very new to Perl. I am not running this on anything larger than 250gb. The speed problem is likely due to my inexperience in programming with Perl.

    If you don't mind my asking, how would I go about merging the find_subdirs together? If I could even cut the run-time on this script in half, I would be ecstatic.
      Just so I know for sure, could you give me a few lines from the input file so I know for sure what you are dealing with. After that I will have time this afternoon to refactor your code and see how much faster I can get it.

      -Waswas
        Here is an example of the input file:

        \\server1\D$\accounting\users
        \\server1\D$\finance\users
        \\server2\E$\corporate\users
        \\server2\E$\tech\users

        I really appreciate your help!