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
-
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
/script/restart.inc: line 67: service: command not found
or
/script/virtual-info: line 7: virt-what: command not found
etc ...
How to correctly create cron jobs for kloxo scripts?
-
Try 'yum install virt-what -y' and then try run 'sh /script/clear-cache --select=3'
-
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.
-
Did you added 'cron job' from 'admin > servers > localhost > cron tasks'?
-
yes, from admin -> servers -> cron tasks -> complex