Sign up here and you can log into the forum!

dmaosd.log "realtime" viewer

This is the place to inquire about general WDTVExt plugin development, tips, and how-to's.

dmaosd.log "realtime" viewer   

Postby dentex » Mon Jan 23, 2012 3:07 am

I wrote two very simple scripts I found useful while testing ext plugins but also to browse the osd without turning on the TV.
basically it's a ssh session the shows the dmaosd.log's tail every second.

Code: Select all
#!/bin/sh
clear
while :
do
    cat /tmp/dmaosd.log | tail -50;
    sleep 1;
    clear;
done

goes into WDLXTV's /conf dir;
and:
Code: Select all
#!/bin/bash
gnome-terminal --hide-menubar --geometry=150x45 -e 'ssh root@192.168.254.2 /tmp/conf/log-viewer.sh'

has to be executed from the desktop PC.
Change 192.168.254.2 with the IP address of your WDTV.

Initially seemed to me very basic to be posted, because maybe there's a more elegant way to do this that I ignore, but anyway, that's it.
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy

Re: dmaosd.log "realtime" viewer   

Postby PaulF » Mon Jan 23, 2012 9:05 pm

When I am listening to Shoutcast, I sometimes do tail -f /tmp/umsp-log.txt to see the song name updates realtime.
User avatar
PaulF
Developer
 
Posts: 427
Joined: Sat May 08, 2010 8:34 pm
Location: Oregon

Re: dmaosd.log "realtime" viewer   

Postby dentex » Tue Jan 24, 2012 1:26 am

Here it is! ...the elegance, with the -f switch.
So now it's just a matter of
Code: Select all
gnome-terminal --hide-menubar --geometry=150x45 -e 'ssh root@192.168.254.2 tail -50 -f /tmp/dmaosd.log'
with no script (and it doesn't flicker).
Thanks PaulF.
User avatar
dentex
Supporter
 
Posts: 179
Joined: Fri Apr 15, 2011 4:57 am
Location: Italy


Return to WDTVExt Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron