|
@@ -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
|