procmail
[Top] [All Lists]

Re: scope of locking (tiglet)

1997-04-10 21:35:00
At 04:32 PM 4/10/97 -0500, David W. Tamkin wrote:

[snip]

If you know that there will be never be a global or regional lockfile in
effect at that point in your rcfile, it becomes simpler yet:

 LOCKFILE=$SGHOMEU/eeyore.lock

   :0HB
   * ? $SGHOMEX/eeyore.pl
   /dev/null

 LOCKFILE

But here's a thought: does $SGHOMEX/eeyore.pl write to stdout?  If not,
we can simplify it greatly by putting the perl call into the action line
as we do with formail -D:

    :0W:$SGHOMEU/eeyore.lock
    | $SGHOMEX/eeyore.pl

Here's another thought... even if it does write to stdout, couldn't you
then write instead?:

      :0W:$SGHOMEU/eeyore.lock
      | $SGHOMEX/eeyore.pl > /dev/null

Cheers,
Stan

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