On 2012-04-26, at 10:07 AM, Paul Fox wrote:
but unless you use the locker from both the commandline and the
cron-driven script, using it in either place won't help, will it?
Put the cron stuff in a file, then:
2 4 * * * mhlock /usr/local/libexec/cronmhstuff
mhlock grabs the lock, runs whatever command was fed it, then releases the
lock. It would be the MH equivalent of FreeBSD's lockf(1).
As long as the mhlocked cron job is running, interactive commands would block
waiting to acquire the lock.
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers