summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarle Bjørgeengen <jarle@bjorgeengen.net>2010-03-02 22:37:34 +0000
committerJarle Bjørgeengen <jarle@bjorgeengen.net>2010-03-02 22:37:34 +0000
commit41666b032449775a39eb22f626a19a82c446ed32 (patch)
treee8deea3487f45af24050a07d79858a9f8208f353
parent47e49f0040c2cab57dd08632c5a4309a1018542b (diff)
Wrapper scripts for working in the right place from cron
-rwxr-xr-xfrikanalen/bin/cron_update_stream_videos.sh10
-rwxr-xr-xfrikanalen/bin/fk-stream.sh10
2 files changed, 20 insertions, 0 deletions
diff --git a/frikanalen/bin/cron_update_stream_videos.sh b/frikanalen/bin/cron_update_stream_videos.sh
new file mode 100755
index 0000000..0b9a8db
--- /dev/null
+++ b/frikanalen/bin/cron_update_stream_videos.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+workdir="/stream/frikanalen-bin"
+
+cd ${workdir}
+if [[ `pwd` == ${workdir} ]]
+then
+find . -name 'broadcast*.ogv' -mtime +1 -exec rm {} \;
+./scheduler -g -o > download.log 2>&1 &
+fi
diff --git a/frikanalen/bin/fk-stream.sh b/frikanalen/bin/fk-stream.sh
new file mode 100755
index 0000000..b792497
--- /dev/null
+++ b/frikanalen/bin/fk-stream.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/bash
+
+workdir="/stream/frikanalen-bin"
+
+cd ${workdir}
+
+if [[ `pwd` == ${workdir} ]]
+then
+./scheduler -s http://voip.nuug.no:8000/frikanalen.ogv > fk.log 2>&1
+fi