PDA

View Full Version : Script to check if recording/playback is in progre



otheitis
05-02-09, 20:57
# ./tuner_status.sh
#
rm /tmp/tuner_status >/dev/null 2>&1
echo web_tuner_status >/dev/commander
if [ -e /tmp/tuner_status ]; then
cat /tmp/tuner_status
echo
fi

When box is in standby: ok
T1 S2 LIVE NONE NONE REC0 NONE NONE REC1 NONE NONE PIP NONE NONE 0 0
LIVE=NONE, REC0=NONE

When watching LIVE Disneyhttp://www.denktenk.com/uploads/icon_surprised.gifk
T1 S2 LIVE 754 'Disney Channel' REC0 NONE NONE REC1 NONE NONE PIP NONE NONE 92 100
LIVE=Disney, REC0=NONE (eg. not recording)

Switch to "Cartoon" and press Recoding: ok
T1 S2 LIVE 537 'Cartoon Network' REC0 537 'Cartoon Network' REC1 NONE NONE PIP N
ONE NONE 95 100
Watching and Recording same channel: ok

Stopped Recording and switch to "Playhouse"
T1 S2 LIVE 1865 'Playhouse Disney' REC0 537 'Cartoon Network' REC1 NONE NONE PIP
NONE NONE 75 100
LIVE shows what i'm watching, and REC0 shows last recorded og last playback recorded channel

?

But how to test if the recording is finished/done.
eg. I want to do some other task but not if someone is doing recording or playback.