# 错误日志脚本 LOGFILE=./errlog date >> $LOGFILE if test -w errfile then cat errfile >> $LOGFILE rm errfile else echo "No error" >> $LOGFILE fi