-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
I was wondering if it is necessary to use the :0: flag when writing to a file,
ie something like this:
:0:
* some_condition
my_file
I was using procmail with VERBOSE=yes defined in my rc file and I noticed
something about aquiring kernel locks. Does this mean that the ":" is not
always necessary, but only in the case of using a program such as formail to
write something to a file?
So you'd have something like this in your .procmailrc
:0 # no lock file required, kernel
* some_condition # lock takes care of file lock
my_file
:0: some_lock_file # lock required because output is going
* some_other_condition # to an external process with possibly
| formail -rD 8192 .user.cache # no file locking
Is this assumption correct? Of course if you're using an OS with no kernel
based file locking you'd ALWAYS need to use lockfile. Also in the case of NFS
mounted volumes you'd want to use lockfiles since lockd is flakey at its best.
Take care,
Xander
- --------------------------------------------------------------------
Xander Soldaat xander(_at_)soldaat(_dot_)com
Firewall/security consultant xander(_at_)competa(_dot_)com
To get my public key, send a mail with "public key request" in the
subject to xander(_at_)soldaat(_dot_)com
Key fingerprint = F252 09D2 893E DAE0 EF09 AC3A 46FC BD78 CC13 BCF2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (OpenBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE5iyOCRvy9eMwTvPIRAh/BAJ9GppzTuiMCi7sd2Jd4f8HNWWucQwCfYSh1
1wPlZF2kdml4SlBqqbbIP0w=
=3vpG
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail