[mythtv-users] Recording LED light possible?

mark fairlane at springcom.com
Tue Mar 23 20:08:37 EST 2004


On Tuesday 23 March 2004 12:59 am, Travis Kelley wrote:
> I have a script that can tell if myth is recording or not...thats pretty
> trivial to me..here it is
>
> if [ `fuser /dev/video0 | grep -cv grep` == "0" ]
>         then  #backend not recording
>         RECORDING="0"
>         else  #backend recording
>         RECORDING="1"
> fi
>
>
> you can change RECORD="x" to any command you want...does this help?  Is
> this what you what you were looking for?  Let me know how this turns out
> as I would be interested in controling an led also...I just don't know
> the hardware side.

Yeah, I think that would do it.  I need to figure out how to integrate it into 
a parallel port output device.  Would I run this script as a daemon or what?


More information about the mythtv-users mailing list