Re: Counting the files in a directory....



On 11.01.2008 19:14, Kyle Schmitt wrote:
Entries seems to be fairly identical to collect, and it does look nicer...
but yea still slow.

As I said: it's the IO for crowded directories (see also Mike's reply).

The problem with caching is that we only keep quarantine directories
around for 10 days, due to their size and the relative rarity of us
needing to pull something out of it. One reason for writing this as a
script is that we recover rarely enough that whoever is doing it
forgot how to recover. Still, it's often enough that we want to be
able to do it easily.

In other cases than a mail system, caching would be a very good idea though.

I am not sure I understand why you think it is a bad idea. If you only cache the number of files per directory where is the issue? Or is this script not invoked regularly? Probably I am missing a bit of your use case.

I'll try and read more of the C stuff for handling files/directories
in unix. I can hold out hope for awhile.

Won't help. It's really the size of the directory. Maybe you give a little more detail about your script and when it's used so we can come up with better suggestions.

Cheers

robert
.



Relevant Pages

  • Event Log Scripting
    ... Ultimately I want a script which will pull out only 'Error' entry logs from ... dtmStartDate.SetVarDate DateToCheck, CONVERT_TO_LOCAL_TIME ... same script against a server with a few hundred entries it hangs for a very ...
    (microsoft.public.windows.server.scripting)
  • Re: [GIT PULL, v4] S+core architecture (arch/score) support
    ... See all the other pull requests out there. ... There's even a 'git request-pull' script that comes with git that ... particular script. ... request-pull" output. ...
    (Linux-Kernel)
  • Pulling Names from multiple OUs
    ... I am trying to pull the Name from all of the User sub-OUs in AD. ... This is the script I am using now. ... Const ADS_SCOPE_SUBTREE = 2 ... Set objConnection = CreateObject ...
    (microsoft.public.windows.server.scripting)
  • Using a variable in a =~ match??
    ... Serious noob here (one week into llama 5th ed.). ... I'm trying to write a script to pull a specific file from a directory ...
    (perl.beginners)
  • SNMP
    ... Do any one of you informed Guru's know of an application or script ... that I can use on my home network to pull the total ...
    (comp.sys.sun.apps)