目录

关闭You have new mail in /var/spool/mail提示

目录
misaraty 更新 | 2022-01-26
前言
在集群上执行qsub命令后,有时会出现You have new mail in /var/spool/mail/misaraty提示。

为消除提示,可进行如下操作:1

  1. root身份查看mail文件,
1
ls -lth /var/spool/mail/
  1. 接着清空mail文件,
1
2
cat /dev/null > /var/spool/mail/root
cat /dev/null > /var/spool/mail/misaraty
  1. 关闭提示,
1
2
echo "unset MAILCHECK">> /etc/profile
source /etc/profile

  1. 解决You have new mail in /var/spool/mail/root提示 ↩︎