Cron job?

Artashes

Administrator
Staff member
Hi guys,

I was wondering if anyone knows how to make cron job for a specific URL work in CPanel? I found the part where you have to write in a command, but I just inserted an URL and it doesn't seem to work. How do you create a cron job to run a certain URL?

Best,
 
You have to choose the times for the cron to run, and then since it's a command you need to run something like:

GET http://www.domain.com/script.php > dev/null

The dev null basically tells it to get rid of email that is generated by script errors. Otherwise it can fill up the email box quite quickly
 
OK, it doesn't seem to work. :crash:

What I'm doing is inserting this line into the standard cron job line:
Code:
GET URLADDRESSHERE > dev/null
The goal is to "launch" a regular URL address so it triggers our newswire bot.
 
The goal is to "launch" a regular URL address

I'm assuming you mean in the background :)

Have you made sure to set the time intervals as well?

Sometimes it's not the cron that's the problem, but possibly the script you're trying to run in the background.

Mind posting the entire cron ...time interval included, as well as the script's code that you're trying to run?
 
ANMMark said:
I'm assuming you mean in the background :)

Have you made sure to set the time intervals as well?
Yes, on the background of course.

And I sure did make sure it activates every 4-5 hours, but it never happened.

I'll send the code to you by PM. Thanks!
 
Art, I got the PM, but it didn't contain the code.

Question though...does it perform it's intended function when you visit the URL directly, via a browser?
 
Back
Top