procmail
[Top] [All Lists]

Re: help with a simple counter file

2003-08-26 15:23:05
On 08/26/03 02:13 PM, Bart Schaefer sat at the `puter and typed:
On Tue, 26 Aug 2003, Louis LeBlanc wrote:

What I'd like to do, however, is append a single character to a
~/.honeypot_hits file, so that a simple ls -l of that file will tell
me how many hits I've gotten there, along with the time the last one
came in.

LOCK=$HOME/.honeypot$LOCKEXT
VERBOSE=no
LOGFILE=$HOME/.honeypot_hits
LOG="."
LOGFILE
HOST

You probably don't really need the LOCK assignment; with only one byte
being appended, two procmails aren't likely to overwrite the same byte.

Now, I really should have thought of that myself.  Talk about obvious.

Nice solution.  Thanks!

Lou
-- 
Louis LeBlanc               leblanc(_at_)keyslapper(_dot_)org
Fully Funded Hobbyist, KeySlapper Extrordinaire :)
http://www.keyslapper.org                     ԿԬ

Barach's Rule:
  An alcoholic is a person who drinks more than his own physician.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


<Prev in Thread] Current Thread [Next in Thread>