问题描述
我运行的是 Open Server 5.0.7。每个星期天都有一个清理脚本运行。 执行脚本时,我出现内核恐慌。有人可以帮助我理解脚本吗? 我对 shell 脚本很陌生。
# Clean up super-user log.
cp /usr/adm/sulog /usr/adm/Osulog
> /usr/adm/sulog
# If accounting isn't enabled,clean up wtmp and wtmpx,# being careful not to create them if they don't exist.
if [ -x /usr/lib/acct/acct_enable ] && /usr/lib/acct/acct_enable -cs ; then
: Do nothing - accounting will clean up wtmp and wtmpx
else
[ -f /etc/wtmp ] && >/etc/wtmp
[ -f /etc/wtmpx ] && >/etc/wtmpx
fi
# Clean up miscellaneous files.
find / -type f -name core -atime +7 -local -exec rm -f {} \;
有人可以帮我吗?我不知道这里发生了什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)