summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-system/misc_status_info.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2012-09-01 21:55:46 (GMT)
committerBritney Fransen <brfransen@gmail.com>2012-09-01 21:55:46 (GMT)
commit2fc24e3699697bf406338eea7b9f8c475399e79b (patch)
tree7a2693c501853ffc78ff69cf0c8c848b16ec731b /abs/core/LinHES-system/misc_status_info.sh
parente0c0e2b0962375dfc62740cafd1620df719d4d31 (diff)
downloadlinhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.zip
linhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.tar.gz
linhes_pkgbuild-2fc24e3699697bf406338eea7b9f8c475399e79b.tar.bz2
LinHES-system: Add scripts for misc status in MythWeb. closes #845.
Diffstat (limited to 'abs/core/LinHES-system/misc_status_info.sh')
-rwxr-xr-xabs/core/LinHES-system/misc_status_info.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/abs/core/LinHES-system/misc_status_info.sh b/abs/core/LinHES-system/misc_status_info.sh
new file mode 100755
index 0000000..14a972c
--- /dev/null
+++ b/abs/core/LinHES-system/misc_status_info.sh
@@ -0,0 +1,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