How can I check with bash or python (preferred) if there are some unread mails in /var/spool/mail/$USER like pam_mail does?
bash
python
unread
/var/spool/mail/$USER
pam_mail
I'd like to use this for my own custom motd script, motd.dynamic
motd.dynamic
Aucun commentaire:
Enregistrer un commentaire