LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 788|回复: 2

问大家,怎么把console下的那个每次来邮件通知关闭?就是那个"you have new mail

[复制链接]
发表于 2004-5-15 14:55:22 | 显示全部楼层 |阅读模式
thx a lot

regards
发表于 2004-5-15 15:31:37 | 显示全部楼层
跟MAIL,MAILPATH的变量设置有关,或者看看你的/etc/motd文件
 楼主| 发表于 2004-5-16 11:58:59 | 显示全部楼层

谢谢回复!确如你所说,是跟这些变量有关.

________________________________________________________________________________

        MAIL If  this  parameter is  set  to  a  file name  and  the
                MAILPATH variable is not  set, bash informs the user of
                the arrival of mail in the specified file.
        MAILCHECK
                Specifies how often (in  seconds) bash checks for mail.
                The default  is 60 seconds.   When it is time  to check
                for  mail,  the shell  does  so  before displaying  the
                primary prompt.  If this variable is unset, or set to a
                value that  is not  a number greater  than or  equal to
                zero, the shell disables mail checking.
        MAILPATH
                A colon-separated list of  file names to be checked for
                mail.  The message to be printed when mail arrives in a
                particular file may be specified by separating the file
                name from  the message  with a `?'.   When used  in the
                text  of the  message, $_  expands to  the name  of the
                current mailfile.  Example:
                MAILPATH='/var/mail/bfox?"You                       have
                mail":~/shell-mail?"$_ has mail!"'
                Bash supplies  a default  value for this  variable, but
                the location  of the  user mail files  that it  uses is
                system dependent (e.g., /var/mail/$USER).
________________________________________________________________________________

Thanks!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表