procmail
[Top] [All Lists]

Re: help with a simple counter file

2003-08-26 14:26:55
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.


_______________________________________________
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>