Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Feature Request: History of vdr-messages



Malcolm Caldwell wrote:
> On Tue, 2004-01-13 at 22:03, Martin Holst wrote:
> > Hi
> > 
> > as several programs send via SVDRP a message to the vdr-OSD, I 
> > would like to have something like a vdr-message history of the last 
> > x messages. If possible, the number of stored messages should be 
> > adjustable via OSD. If not, it could (in my opinion) set to 5.
> > 
> > To enhance the usability of such a history, the date&time of each
> > message should also be saved.
> 
> I have the following in my commands.conf
> view log: tail /var/log/messages
> 
> That will view the last few SVDRP messages, as well as everything else
> in the log!  If all you want is the SVDRP messages throw a grep in.

As suggested by lots of other users (thanks), this will only work if the
user, under which vdr is running, has access to the syslog. Another disadvantage
from your solution is, that if you have a message in the night and you want
to reproduce what is going on, you simply cannot do this. Christian Holpert
suggested via PM to do this like (untested, but it should work)

|#!/bin/sh
|LINES=5
|grep "SVDRP\ message:" /var/log/messages | cut -d\: -f1,2,5 | cut -d\  -f3-
| sed -e s/:\ /\ / -e s/\'//g| tail -n$LINES > /tmp/showmesg.tmp
|cat /tmp/showmesg.tmp
|rm /tmp/showmesg.tmp

which is a good solution but not as comfortable as I want it. And you still
have the right problem.

Martin

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net




-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index