09-11-2019 07:00 AM
Hi,
Can anyone help me why the task scheduler (cron job) is not working on NBU appliance? We have a script that is use to check daily backlog on our master server, running in command line it works perfectly. But adding it to the crontab, it does not work. Looking at some resources i.e., article about this but could not find one. Anyone? Appreciate any inputs on this issue.
Here is sample content of the cron
crontab -e
*/15 * * * * /usr/openv/scripts/backuplog.ksh
MAILTO=joeemailaddress.com
Thanks,
Joe
09-13-2019 01:12 PM
If it works via the CLI but not in cron then you're almost certainly missing a PATH entry for one of the binaries you call.
Modify your script and either add the missing directory into the PATH, or fully qualify all your binary calls.
By default the appliances' cron daemon only has the following PATH directories: /usr/bin:/bin
09-17-2019 05:04 AM
@Jose_Arevalo wrote:
*/15 * * * * /usr/openv/scripts/backuplog.ksh
Is this a typo error, or is your 1st field really '*/15 ' ?
09-17-2019 02:38 PM
*/15 is shorthand for "every 15" in cron. =)
Would be the same as writing out :
0,15,30,45 * * * * /usr/openv/scripts/backuplog.ksh
09-18-2019 09:01 AM
hello Marianne, yes it is correct, John replied with the information.
11-15-2019 02:35 AM
Can you try the below works for my crons
*/15 * * * * /usr/openv/scripts/backuplog.ksh >> /dev/null
11-19-2019 05:16 AM
Is crond up and runing there?
ps -ef|grep cron
root 104254 1 0 Aug10 ? 00:02:48 /usr/sbin/crond -n -s -m off