I have a shell script which sends email when the disk is more than 80% full; when I run the script as sh -x script.sh
or ./script.sh
I get an email but when I keep the script in cronjob I do not get any email.
The script has execute permissions (755).
When I type mail
I can see the cronjob has ran at that time, but there is no email sent.