msgid

Joost van Baal joostvb at logreport.org
Thu Sep 27 17:21:47 CEST 2001


Hello Edward,

On Thu, Sep 27, 2001 at 11:02:31AM -0400, Edward Eldred wrote:
> 
> I want to convert my sendmail log to a dlf file, but when I do:
> 
> sendmail2dlf /opt/maillog.0 I get email sendmail UNSET sendmail2dlf info 
> started
> 
> and nothing ever seems to come of it,

You need to do 

 $ sendmail2dlf < /opt/maillog.0 > sendmail.dlf

since sendmail2dlf reads from STDIN.

> so I end up doing lr_log2report 
> and I capture the dlf file before it gets deleted (seems like I once saw 
> an option not to delete tmp files).

lr_log2report is a bit more userfriendly then sendmail2dlf.
(I assume you're running lire-20010903.tar.gz , btw.)

> 
> 1.  am i using sendmail2dlf improperly?

See above.

> 2.  is there an option to keep tmp files?  if so, what is it?

Do

 $ echo KEEP=1 >> YOURPREFIX/etc/lire/defaults.local

This will keep all temporary files in TMPDIR.  By default, TMPDIR is
$HOME/tmp.  If instead you do ARCHIVE=1, all possible interesting files,
including the .dlf, will get kept.  (KEEP=1 keeps quite a lot of files,
actually.)

> 3.  i want to suppress the msgid output in the dlf file (ex, 
> pine.sol.3.91.1010925.25910e-10000 at godzilla2.acpub.duke.edu).  can i do 
> that?

Hmm...  That's a bit more tricky.  The quick and dirty solution would be
to do

 $ while read t h q i r; do echo $t $h $q $r; done < sendmail.dlf > sendmail.dlf.nonmsgid

from a bourne type shell like ksh or bash.

BTW, your message makes me curious.  What are you trying to achieve with
these dlf's?

Hope this answers your questions.

Bye,

Joost

-- 
Joost van Baal              . .           http://www.logreport.org/
                           .   .
/^LogReport$/               . .               joostvb at logreport.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.logreport.org/pipermail/questions/attachments/20010927/3583b011/attachment.bin 


More information about the Questions mailing list