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