diff --git a/cron.sh b/cron.sh index 80785bb..b333ac5 100755 --- a/cron.sh +++ b/cron.sh @@ -18,11 +18,11 @@ for i in $list; do done #Show status -echo "====" +echo for i in $list; do [[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording" done -echo "====" +echo echo "Removing old files (older than $ctime_remove days):" find $storage_path/ -ctime +$ctime_remove -name "*mp4*" find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;