I'm struggling to create a scheduled job in cron to send the directory size to an email address. This is what I've got so far
crontab -e
* * * * * du -s /path/to/dir | mail -s "test" [email protected]
as I understand it, this should send an email every minute but its not?