summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/misc_status_info.sh
blob: 14a972cdd0c4fa8ff55b1a8f2197c47a8a3280c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

# Show all upcoming conflicts
/usr/LH/bin/misc_upcoming_recordings.pl --recordings -1 \
                            --no_show_scheduled \
                            --heading '<h3>Recording Conflicts</h3>' \
                            --no_conflicts_message '<h3>No Recording Conflicts</h3>' 

# Show all the shows recorded today
/usr/LH/bin/misc_recent_recordings.pl --recordings=-1 --hours=24 \
                          --heading '<h3>Shows Recorded In The Last 24 Hours</h3>'

# Get Encoder that was used for recordings from the backend log
firstrun=1
loglist=`find /var/log/ -name *_mythbackend.*.log*`
for i in `ls -t $loglist`
do
    if [ $firstrun -eq 1 ]; then
        echo "<h3>Encoder Information</h3><div class=\"schedule\""
        firstrun=0
    fi
    /usr/LH/bin/misc_which_recorder.pl --noheader $i
done