eqwert
This commit is contained in:
parent
94509148bc
commit
4d2d7f6a0a
4
cron.sh
4
cron.sh
@ -18,11 +18,11 @@ for i in $list; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
#Show status
|
#Show status
|
||||||
echo "===="
|
echo
|
||||||
for i in $list; do
|
for i in $list; do
|
||||||
[[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording"
|
[[ -f $storage_path/$i/pid ]] && echo $i "is recording!" || echo $i "is not recording"
|
||||||
done
|
done
|
||||||
echo "===="
|
echo
|
||||||
echo "Removing old files (older than $ctime_remove days):"
|
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*"
|
||||||
find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;
|
find $storage_path/ -ctime +$ctime_remove -name "*mp4*" -exec rm {} \;
|
||||||
|
Loading…
Reference in New Issue
Block a user