# auto-del-log.sh
#!/bin/shfor 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 分钟清空一次logend