Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Extract file type from stat() mode

by rlucas (Scribe)
on May 26, 2005 at 19:29 UTC ( [id://460831]=note: print w/replies, xml ) Need Help??


in reply to Extract file type from stat() mode

Try looking at changetrack and tripwire. These are both fairly widely used programs for doing some or all of what you're after. Changetrack, I believe, mainly handles content changes (emailing diffs to root, etc), while tripwire can handle *all kinds* of stuff, like mod times, perms, size, etc., along with a dizzying array of options for things like "growable" files (e.g., only alert me if this log file should *decrease* in size), etc.

Tripwire is available in Free and commercial versions, and the Free one is supported as many free things. However, if you were going to roll your own anyhow, dealing with the already-thought-out complexity of tripwire might be a blessing.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://460831]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 00:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found