Re: compile error

2001-07-17 Thread Kjetil Ødegaard

* Kenneth [EMAIL PROTECTED]

 I encountered the following error in compiling qmail in my redhat
 7.1 machine. Appreciate any idea to solve this problem.

Did you create the user alias?

-- 
Kjetil



Re: log format

2001-07-17 Thread Kjetil Ødegaard

* GARGIULO Eduardo INGDESI [EMAIL PROTECTED]

 Hi all.
 
 I'm using qmail-1.03, and it's working ok.
 Yesterday, I change the way to start qmail from tarball/INSTALL docs
 to LWQ. The problem is that the logs don't says (in human readable
 format), the date and time of each event. Instead of that, I see
 lines like 
 
 @40003b535a1736077d54 tcpserver: ok 7541 0:10.1.1.1:25 :10.1.1.194::2525
 
 How can I configure qmail startup process to log the events date and
 time like syslog? (Jul 17 12:03:00 host process: blah, blah, blah...)

As others have pointed out, you should use tai64nlocal from the
daemontools package to convert these timestamps.

If you use GNU less for viewing logs, see

  http://www.orakel.ntnu.no/~kjetilod/tips/

for instructions on how to do this conversion automatically.

-- 
Kjetil



Re: log format

2001-07-17 Thread Kjetil Ødegaard

* pop corn [EMAIL PROTECTED]

http://www.orakel.ntnu.no/~kjetilod/tips/
 
 Terrific tip! this is how I got it to work on Redhat 7.0:
 
 # pwd
 /usr/bin
 # diff lesspipe.sh lesspipe.sh.orig
  \@*.s) tai64nlocal  $1 ;;
  # http://www.orakel.ntnu.no/~kjetilod/tips/
 # export LESSOPEN=|/usr/bin/lesspipe.sh %s

You should probably save your modified lesspipe.sh in ~/bin; otherwise
it might be lost in an upgrade.

I have added a paragraph for Red Hat users.  If anyone has information
about lesspipe on other platforms, email me and I'll add them.

-- 
Kjetil



Re: qmailanalog

2001-06-28 Thread Kjetil Ødegaard

* Charles Cazabon [EMAIL PROTECTED]

 tai64n timestamps aren't supposed to be human readable.  They're supposed to
 be easily parsable by programs.  That's the whole point of tai64nlocal -- you
 log with tai64n timestamps, and if you want to read the log with
 human-readable timestamps, you do:
 tai64nlocal  log | pager_of_choice

If you use GNU less, you can convert the timestamp automatically by
using the LESSOPEN environment variable.

I have a short write-up on how to do this at

http://www.orakel.ntnu.no/~kjetilod/tips/

-- 
Kjetil