Cron Behavior in Hp-Ux

I am trying to monitor my server through a script which is run by cron in HP-UX environment. However, an if-else condition is not working correctly when run by cron. For example, if certain condition appears, the script should send mail. But when run by cron, the program is not sending mail. Also, when I am trying to run the script independently, the mail is getting sent. Is this a known issue in HP-UX?

5
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article