Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2020-07-03, 15:06:58

Author Topic: cron jobs for kloxo scripts  (Read 8917 times)

0 Members and 1 Guest are viewing this topic.

Offline EndErr

  • Valuable Member
  • *
  • Posts: 122
  • Karma: +0/-0
  • Gender: Male
    • View Profile
cron jobs for kloxo scripts
« 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?

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cron jobs for kloxo scripts
« Reply #1 on: 2019-11-01, 11:14:10 »
Try 'yum install virt-what -y' and then try run 'sh /script/clear-cache --select=3'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline EndErr

  • Valuable Member
  • *
  • Posts: 122
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: cron jobs for kloxo scripts
« Reply #2 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.

Online MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: cron jobs for kloxo scripts
« Reply #3 on: 2019-11-01, 14:32:48 »
Did you added 'cron job' from 'admin > servers > localhost > cron tasks'?
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline EndErr

  • Valuable Member
  • *
  • Posts: 122
  • Karma: +0/-0
  • Gender: Male
    • View Profile
Re: cron jobs for kloxo scripts
« Reply #4 on: 2019-11-01, 15:07:55 »
yes, from admin -> servers -> cron tasks -> complex

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.066 seconds with 21 queries.

web stats analysis