Categories
Linux Mastering Development Ubuntu

Mail transmits when script run manually but fails as a cron job

I have a script space_monitor.sh which when ran, will check the used and available disk space in a machine and if the space left is less than a threshold, it will send mail to some mail ids. The script is running perfectly when I ran through command line. But when I run it by creating […]