Eric,

Thank you very much.  I will try it out ASAP.  :)

Best regards,
Bill

On 11/26/06, Eric Shubes <[EMAIL PROTECTED]> wrote:

One more thing (especially for Bill),
If you
# export logdir=/path/to/logs
before running the script, /path/to/logs will override /var/log/qmail
To return to default,
# unset logdir

Eric "Shubes" wrote:
> Eric "Shubes" wrote:
>> Let me see what I can come up with.
>>
>
> I've made some significant modifications to qmlog. It's not finished
yet,
> but I think it's in a usable state. I won't be able to complete what I
want
> to do for a few weeks, but I thought some of you might want to try out
> what's completed so far. I haven't cut a new qtp release, but you can
try
> out the (highly modified) script by getting it straight from the
development
> branch.
>
> To obtain the new version from the development trunk:
> # cd /opt/qmailtoaster-plus/bin
> # mv qmlog qmlog.bkp
> # wget http://svn.shubes.net/qtp/trunk/bin/qmlog
> # chmod 755 qmlog
> # cd ../etc
> # wget http://svn.shubes.net/qtp/trunk/etc/qmlog-trim.sed
>
> To get help:
> # qmlog
> qmlog v0.2 -  show current log of service 'service'
> usage: qmlog service [option] ...
> services: clamd imap4 imap4-ssl pop3 pop3-ssl send smtp spamd
> options:
>   -h[elp]      this help
>   -l[ist]      list saved logs of service
>   -f           follow as it grows, using tail -f
>   -t N         show (tail) last N lines
>   -nl          show without using less
>   -nt          show with no trimming
>   -lc regex    show logs of service that contain the string 'regex'
>   -ln pattern  show logs of service with file name containing 'pattern'
>
> Highlights:
> .) options are not longer mutually exclusive, and can be combined (when
it
> makes sense to do so)
> .) option values have changed significantly
> .) 'service' may be specified before, among, or after other options
> .) separate sed file for trimming output, uses any sed command.
> .) default operation is to trim and show with 'less'. Use CL options to
turn
> these features off.
> .) -lc option positions log at first occurrence of 'regex' using 'less'
>
> Enhancements to be done:
> .) +grep, -grep options for filtering lines that are showed
> .) date/time range selection
>
> As I said, this is not a completed work. I'm sure there are a few bugs,
so
> if you find some unexpected or inappropriate behavior, please post to
the
> list. All suggested improvements are welcome.
>
> NJoy!


--
-Eric 'shubes'

---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to