[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] Debugging logs
From: |
Mike Meyer |
Subject: |
[RP] Debugging logs |
Date: |
Wed Oct 10 15:01:12 2001 |
shawn <address@hidden> types:
> if [ $# -gt 0 ]; then
> $1
> else
> /home/sabetts/src/ratpoison/src/ratpoison 1>/tmp/rplog 2>&1
> fi
>
> then /tmp/rplog contains all ratpoison output. When a problem arises I
> open the file and start reading...I assume that if you empty the file
> periodically the debug output will still accumulate:
>
> $ >/tmp/rplog
>
> should empty it...
Gee, while cleaning up mail today comes the commit message for
"flog". This is a little tool that does exactly the right thing:
ratpoison 2>&1 | flog /tmp/rplog &
Then:
$ rm /tmp/rplog
$ killall -HUP flog
will correctly truncate the log. It also truncates the log if the
device runs out of space.
FreeBSD users just need to sup the latest ports tree. Others - well,
you're on your own. I'll send you the sources if you really can't find
it.
<mike
--
Mike Meyer <address@hidden> http://www.mired.org/home/mwm/
Q: How do you make the gods laugh? A: Tell them your plans.