procmail
[Top] [All Lists]

Avoiding flag c cloning penalty. An more efficient way?

1998-08-24 11:10:47

    As my procmail scripts grow and grow I have started becoming
    very paranoid about system load and extra processes. It came
    to my mind that 
    
    -- If c flag is used, procmail forks a clone. Child executes
       that recipe and dies.
    -- Other recipes continue in Parent.

    Now, I run shell commands that need not to be serialized,
    so instead of doing the std way:


        :0 hic
        | command

    I can avoid the extra fork altogether by using

        :0
        * ? command
        { }

    But would it also be same as

        dummy = `command`

    Any diffrence between 2 and 3 or other remarks?

jari

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