Explorar o código

added while loop to pict-converter as cron is not working, i'll have to fixe that

Bachir Soussi Chiadmi %!s(int64=8) %!d(string=hai) anos
pai
achega
e4d45bcf50
Modificáronse 1 ficheiros con 7 adicións e 5 borrados
  1. 7 5
      www/pict-converter.sh

+ 7 - 5
www/pict-converter.sh

@@ -99,8 +99,10 @@ function convert {
 }
 
 
-
-day=$(date +"%Y-%m-%d")
-logfile="logs/convert-$day.log"
-touch $logfile
-convert | tee -a $logfile
+while true; do
+    day=$(date +"%Y-%m-%d")
+    logfile="logs/convert-$day.log"
+    touch $logfile
+    convert | tee -a $logfile
+    sleep 10m
+done