脚本定期清理日志
?
scrollLog.sh
#!/bin/bashcd `dirname $0`PWD_DIR=`pwd`echo $PWD_DIRSIZE=`du nohup.out | cut -f 1`echo $SIZEif [ $SIZE -gt 20000 ]; then >nohup.out echo `du nohup.out`fi