This question already has an answer here:
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