QmailtoasterMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Qmlog

From Qmailtoaster

This is a script that was written by Fabio Olaechea and sent to me to be posted. It helps read the qmail logs a little easier from the command line. I translated it to English and lined up the formatting a little (probably got garbled in the email). Here's the output with no switches:

[root@mail ~]# ./qmlog usage: qmlog [option] service show current log of service 'service'

options:

-l list backup logs of service

-s pattern show backup file of name starting with 'pattern' on service

-e regex show backup file that contain the string 'regex' on service

-t n show last n lines of selected file using tail

-p show with pause (using less)

--help this help

services: clamd imap4 imap4-ssl pop3 pop3-ssl send smtp spamd


Which will show you what it will do. I have not really tested the script, so you may want to view it before running it!

Here is the qmlog script [1]

Here it is in TEXT format [2]

Edit: works like a charm, invaluably helpful for the newly initiated. As an example, "#qmlog -p clamd" displays onscreen with human-readable time/date stamps the contents of /var/log/qmail/clamd with a pause...space bar/page-down to keep scrolling to EOF.

Retrieved from "http://wiki.qmailtoaster.com/index.php/Qmlog"

This page has been accessed 4,569 times. This page was last modified on 13 July 2006, at 17:26. Content is available under GNU Free Documentation License 1.2.


Find

Browse
Main page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More...