summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2009-10-22 08:53:42 +0000
committerPetter Reinholdtsen <pere@hungry.com>2009-10-22 08:53:42 +0000
commit39218a105cef68efa64df6828b19ca0d3e9be107 (patch)
tree303d46753a279fd86790207fb2535a0c10740db9
parent982e58c9777d4c606bbf8738728d7c1b7b85da9e (diff)
Minor cleanup. update_frikanalen-cron.sh
-rwxr-xr-xfrikanalen/bin/scheduler2
-rwxr-xr-xfrikanalen/bin/update_frikanalen-cron.sh15
2 files changed, 7 insertions, 10 deletions
diff --git a/frikanalen/bin/scheduler b/frikanalen/bin/scheduler
index 274581c..fb43b68 100755
--- a/frikanalen/bin/scheduler
+++ b/frikanalen/bin/scheduler
@@ -33,7 +33,7 @@ use File::Temp;
# SOAP:Lite må modifiseres til å gjøre ting på MS måten :-/
use SOAP::Lite on_action => sub {sprintf '%s/%s', @_}, ;
-binmode STDOUT, ":utf8";
+#binmode STDOUT, ":utf8";
my $vlc = vlc_start();
diff --git a/frikanalen/bin/update_frikanalen-cron.sh b/frikanalen/bin/update_frikanalen-cron.sh
index b01c768..6c5313f 100755
--- a/frikanalen/bin/update_frikanalen-cron.sh
+++ b/frikanalen/bin/update_frikanalen-cron.sh
@@ -1,19 +1,19 @@
#!/usr/local/bin/bash
typeset -i c=0
-bindir="/data/video/frikanalen/bin/"
-htmldir="/data/video/frikanalen/"
+bindir="/data/video/frikanalen/bin"
+htmldir="/data/video/frikanalen"
echo "###### `date` #####"
echo "Updating meta.xml"
-> ${htmldir}meta.xml
+> $htmldir/meta.xml
while [[ true ]]; do
c=$c+1
echo "Take $c"
- ${bindir}update_meta_xml.pl
- if [[ $(wc -l ${htmldir}meta.xml|awk '{print $1}') -lt 50 ]]
+ $bindir/update_meta_xml.pl
+ if [[ $(wc -l $htmldir/meta.xml|awk '{print $1}') -lt 50 ]]
then
sleep 30
else
@@ -21,7 +21,4 @@ while [[ true ]]; do
fi
done
-${bindir}/update_video_diff.pl
-
-
-
+$bindir/update_video_diff.pl