procmail
[Top] [All Lists]

Re: Executing programs

1997-05-12 03:37:00
"Jordi" == Jordi Garcia Busquets <jordi(_at_)hades(_dot_)udg(_dot_)es> 
writes:

Jordi>  | cat > $HOME/filename && program_name $HOME/filename

But now procmail can't automagically determine the lockfile to use. So
you have to give an explicit filename:
:0bc: $HOME/filename.lock
| cat > $HOME/filename && program_name $HOME/filename

Things would become a lot easier if the program could read stdin
directly:
:0bc
| program_name -

(If the program uses some other files, you should put the lockfile
back in.)

-- 
Guy Geens <ggeens(_at_)iname(_dot_)com>
Home Page: http://www.elis.rug.ac.be/~ggeens
finger ggeens(_at_)elis(_dot_)rug(_dot_)ac(_dot_)be for PGP public keys (or use 
keyserver) 

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