monitoring incoming mailbox in console mode
kh at panix.com
Wed Sep 8 18:54:49 UTC 2021
On 2021/09/08 08:45, Matthias Apitz wrote:
> I want to monitor my mailbox below /var/mail/... when the system is only
> running in console mode, i.e. w/o X11 and KDE desktop. On new mail, i.e.
> when the last modified date of the mbox file is changing, it should
> produce the normal BEL signal. Do we have something in ports before I
> write my own script?
Shells can check for new mail, though they don't ring the bell. Csh uses
the shell variable "mail"; bash uses MAIL, MAILCHECK, and MAILPATH. See
the man pages.
More information about the freebsd-questions