I get this alert when someone sends me a mail and i'm logged in in shell
You have new mail in /var/spool/mail/xxxxxxx
But if i'm not logged in I need to check manually with mail cmd. How do i set such a way if i login via ssh to a comp, and if there are any new msgs, i want to receive an alert.