MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: EndErr on 2019-11-01, 09:52:28

Title: cron jobs for kloxo scripts
Post by: EndErr on 2019-11-01, 09:52:28
I try to add cron jobs to execute some kloxo scripts (e.g. "sh /script/restart-all" or "/script/clear-cache --select=3") but get errors, in email message I get
Code: [Select]
/script/restart.inc: line 67: service: command not foundor
Code: [Select]
/script/virtual-info: line 7: virt-what: command not foundetc ...

How to correctly create cron jobs for kloxo scripts?
Title: Re: cron jobs for kloxo scripts
Post by: MRatWork on 2019-11-01, 11:14:10
Try 'yum install virt-what -y' and then try run 'sh /script/clear-cache --select=3'
Title: Re: cron jobs for kloxo scripts
Post by: EndErr on 2019-11-01, 14:28:31
The scripts are running fine if executed from shell, but I wanted to execute them through cron jobs instead of manually. Cron executes them but I get those errors.
Title: Re: cron jobs for kloxo scripts
Post by: MRatWork on 2019-11-01, 14:32:48
Did you added 'cron job' from 'admin > servers > localhost > cron tasks'?
Title: Re: cron jobs for kloxo scripts
Post by: EndErr on 2019-11-01, 15:07:55
yes, from admin -> servers -> cron tasks -> complex