# auto-del-log.sh
#!/bin/sh
for i in `find . -name "*.out" -o -name "*.log"`
do
cat /dev/null > $i;
done;
# auto-del-log.rb
while true
system 'sh /opt/auto-del-log.sh'
sleep 10*60 #10 分钟清空一次log
end
2023-09-23 18:33:45
# auto-del-log.sh
#!/bin/sh
for i in `find . -name "*.out" -o -name "*.log"`
do
cat /dev/null > $i;
done;
# auto-del-log.rb
while true
system 'sh /opt/auto-del-log.sh'
sleep 10*60 #10 分钟清空一次log
end