procmail
[Top] [All Lists]

what LOG=` ` reads

1997-03-29 15:22:03
Era Eriksson asked,

| This is pretty contrived and moreover untested, but backticks inside a
| LOG pseudo-statement(*) don't eat standard input, do they?

They do when I've tried it.  Try something like this:

LOG="`formail -XDate: -XReply-To: -XMessage-Id:`
"

|     OLDLOG=$LOGFILE
|     LOGFILE=log.tmp
|     LOG="`lockfile log.tmp.lock`"
|     # The previous should in fact not write anything to the log

Well, of course not, because lockfile normally doesn't write to stdout.

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