소스 검색

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

Bachir Soussi Chiadmi 8 년 전
부모
커밋
e4d45bcf50
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  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