You have mail in /var/spool/mail/root

You have mail in /var/spool/mail/root.

Can someone tell me what does this mean?

3

2 Answers

A task has run on your machine that had some output, but had nowhere to leave it. So it sent you an email. Because there is no full email system on your machine either, all it could do was to write a message in /var/spool/mail/root.

Switch to the root user and see what the mail is about:

sudo less /var/spool/mail/root
1

Run

crontab -e

and add output to your cron jobs. If you want to disable emails for just one cron job, you will need to redirect its output to

/dev/null by adding > /dev/null 2>&1 

at the end of the line. For example:

* * * * */5 /path/to/command arguments > /dev/null 2>&1
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like