To prevent mail messages piling up from your crontab commands you add the following at the end of your crontab line:
So for example crontab entry:
@weekly /usr/local/bin/gravity.sh >/dev/null 2>&1
Alternative would be using MAILTO=”” variable at the start of your crontab file.
Please edit crontab file with command crontab -e and add at the top of the file:
Save and close the file.