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. 2024-04-25, 10:27:06

Author Topic: Cron job!!  (Read 9610 times)

0 Members and 1 Guest are viewing this topic.

Offline dfreddie

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Cron job!!
« on: 2013-05-16, 22:15:15 »
I have to recall this subject ... because my last post referring this subject ... has evaporated!!!
Is or not crob job working?

Thanks for ur attention!
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron job!!
« Reply #1 on: 2013-05-16, 22:46:52 »
cronjob with assumsion using sh... so if you ran 'sh /script/fixweb' it must set as '/script/fixweb'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline dfreddie

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #2 on: 2013-05-17, 12:12:53 »
Even is a php script?

Anyway, I've set up something like: /home/user/script.php
But I've got error: /bin/sh: /home/user/script.php: Permission denied

The cron job is configurated as admin user.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline dfreddie

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #3 on: 2013-05-18, 15:36:57 »
Anybody?
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron job!!
« Reply #4 on: 2013-05-18, 16:00:06 »
Create sh file for execute php.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Cron job!!
« Reply #5 on: 2013-05-18, 16:27:53 »
Try with '/usr/bin/php /home/user/script.php'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline dfreddie

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #6 on: 2013-05-20, 21:49:45 »
I have a script via http ... and it's working ok (but I have to run it manually) and cron job ... it does nothing!!
Why??
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline lupetalo

  • Senior Member
  • *
  • Posts: 182
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #7 on: 2013-05-30, 07:56:42 »
Quote from: "dfreddie"
I have a script via http ... and it's working ok (but I have to run it manually) and cron job ... it does nothing!!
Why??
Maybe this could help: http://www.thegeekstuff.com/2011/07/php-cron-job/

user under which you create job should have access to file...
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #8 on: 2013-05-31, 23:37:15 »
Make sure you have installed cron.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline dfreddie

  • Valuable Member
  • *
  • Posts: 98
  • Karma: +0/-0
    • View Profile
Re: Cron job!!
« Reply #9 on: 2013-06-01, 00:12:41 »
Ok ... thanks for help. But ... cron is already installed. I've edit crontab and add something like @lupelato pointed in http://www.thegeekstuff.com/2011/07/php-cron-job ... as root this time.
I've searched in logs (/var/log/cron) and it shows the job w/o any error. But .. the script does nothing. When I am running it manually is ok. The same script was copied from another server with CPanel and there was working. I don't know what to say more ... maybe is me after all!
« Last Edit: 1970-01-01, 01:00:00 by Guest »

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine
Click Here

Page created in 0.05 seconds with 21 queries.

web stats analysis