procmail
[Top] [All Lists]

Re: [procmail] Re: [procmail] Procmail log w/root-tail

2000-01-21 14:37:59
S.Toms wrote:

<> On Thu, 20 Jan 2000, Reto Lichtensteiger wrote:
<> 
<> rl> Replace that with:
<> rl> 
<> rl>   if $test .$MSkeeplogfile = .
<> rl>   then $cat "$LOGFILE" > "$OLDLOGFILE"; $cat $DEVNULL >>"$LOGFILE"
<> rl>   else OLDLOGFILE="$LOGFILE"
<> rl>   fi
<> rl> 
<> 
<>   That seemed to do it, I don't know why, but when I was trying something
<> similar from the command line to see if it would take, it wouldn't
<> but I think that's because I was using a > (replace) rather then an >> 
<> (append). But now it seems to be doing exactly what I expected it to do.

Whups! That's what I get for doing cut''n'paste in the middle of the
night ... THe second line should read:

-  then $cat "$LOGFILE" > "$OLDLOGFILE"; $cat $DEVNULL >> "$LOGFILE"
+  then $cat "$LOGFILE" > "$OLDLOGFILE"; $cat $DEVNULL > "$LOGFILE"

_Appending_ /dev/null to the end of a file is a no-op; we want to truncate
it ...

R
-- 
R A Lichtensteiger       rali(_at_)meitca(_dot_)com -or- 
rali(_at_)world(_dot_)std(_dot_)com
                         http://www.meitca.com/ITA/People/rali
    "Yes, you're doing things right, but are you doing the right things?"
    "Nope.  I'm just doing something dumb fast."

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