Advertisement:

Author Topic: Manual Cron Job  (Read 1698 times)

umarizal

  • Jr. Member
  • **
  • Posts: 86
Manual Cron Job
« on: January 08, 2015, 11:30:29 pm »
Hello friends!

I wonder what the correct way to set up cron manually.

I make that:
Quote
Hostgator

Enter your Cpanel, scroll down to "Advanced", click on "Cron Jobs". If you want to know if there's any error, enter your email.

Enter the following command:

wget domain.com/index.php?page=cron -O /dev/null

Select to run "Once an hour (0 * * * *)", and you're done!

But, don´t work and I received this message:
Quote
Resolving comprarevenderimoveis.net... **********************
Connecting to comprarevenderimoveis.net|******************|:80... failed: Invalid argument.

lucas88

  • Newbie
  • *
  • Posts: 18
Re: Manual Cron Job
« Reply #1 on: March 02, 2015, 04:43:04 pm »
There is an insanely easy way to set up cron job: https://www.easycron.com/cron-job-tutorials/how-to-set-up-cron-job-for-osclass.

Hi
does anyone test it? is it working?
Thanks

pixelpadre

  • Jr. Member
  • **
  • Posts: 76
Re: Manual Cron Job
« Reply #2 on: July 15, 2016, 07:16:05 pm »
Here's the problem I have with easycron.   It seems to me that they are talking hypothetical on the page=cron part of the url.  I mean who created this page=cron anyway?  I don't see it mentioned anywhere in my admin panel.  Shouldnt the url for easycron be the full path to the cron.php file?

Are you saying the page=cron is a link to the executable?  If so, where is this defined?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: Manual Cron Job
« Reply #3 on: July 16, 2016, 12:55:03 am »
Here's the problem I have with easycron.   It seems to me that they are talking hypothetical on the page=cron part of the url.  I mean who created this page=cron anyway?  I don't see it mentioned anywhere in my admin panel.  Shouldnt the url for easycron be the full path to the cron.php file?

Are you saying the page=cron is a link to the executable?  If so, where is this defined?


It's defined here : https://github.com/osclass/Osclass/blob/master/index.php#L76
Accessing cron.php directly will throw an error as it doesn't have the rest of Osclass librearies loaded, the correct way is to call it via page=cron