Shell script not running correctly using CronJob
Hi Folks,
I have a shell script to check mail queue and sent email if it reaches to critical level. Please find shell script as below. Code:
#!/bin/bash When i checked cronjob logs it shows that this script schedule ran on the scheduled time.Please find cronjob configuration as below. Code:
*/30 * * * * /bin/sh /root/bin/mail_queue.sh Regards, |
You need to use full path to every command, or set the $PATH so the commands can be found.
|
Hello Emerson,
It works with the full command path for exim -v command. Thanks for your instance support and help. I appreciate it. Regards, |
All times are GMT -5. The time now is 05:15 PM. |