PSMAIL - bash script
Hi everyone!
I've made a bash script to monitor the system. When one domain is down, or the storage reaches dangerous levels, the script sends a mail to me, so I can do something.
So far, so good... I'm using psmail to send those notifications. The situation is that when I execute the script manually (sh script.sh or ./script.sh), everything is perfect, the mail is sent. But if the script is executed through cron, the psmail doesn´t send anything. I'm running in Solaris 11.
Do anyone have any idea?
Thanks a lot!