I would like procmail and a shell script to share a lockfile (I was to
prevent procmail from writing to a directory if the shell script has locked
it.
The shell script lockfile is $HOME/TEMP/parse.sh.lock
The hitch is that I need to protect a *directory*
The name of the **directory** to which procmail delivers is
'Arooooo-Archive'
I'm not even sure I can lock a directory, but this doesn't give an error
:0c :$HOME/TEMP/parse.sh.lock
Arooooo-Archive
Is that really doing what I think it is?
TjL
procmail v3.22 2001/09/10
ps -- the shell script uses this code:
LOCKFILE=$TEMP/$NAME.lock
# If the lockfile is found
if [ -f "$LOCKFILE" ]; then
# yadda yadda yadda
else
# If the lockfile is not found, make it
touch $LOCKFILE
fi
if there is a better way, please let me know!
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail