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. 2019-11-22, 19:45:13

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

0 Members and 1 Guest are viewing this topic.

Offline EndErr

  • Valuable Member
  • *
  • Posts: 118
  • 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?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-10
  • 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: 118
  • 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-10
  • 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: 118
  • 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 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.042 seconds with 22 queries.

web stats analysis