Add to Favorites
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   12-06-2004, 03:22 PM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Location: Montreal, Canada
Posts: 5,230

Status: Artashes is offline
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,
__________________
Welcome to our web hosting community for grownups.

Read the RULES you have agreed to.
 
 
 


Old
  Post #2 (permalink)   12-06-2004, 04:21 PM
HD Community Advisor
 
ANMMark's Avatar
 
Join Date: Sep 2004
Location: Pennsylvania
Posts: 1,580

Status: ANMMark is offline
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
__________________
Mark - Co-President/Lead Developer
avidInteractive Software
The ServeraSuite 2007 Award Winning Professional Server Monitoring Solution - Click here
 
 
 


Old
  Post #3 (permalink)   12-06-2004, 04:30 PM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Location: Montreal, Canada
Posts: 5,230

Status: Artashes is offline
Thanks, Mark. I'll give it a try.
__________________
Welcome to our web hosting community for grownups.

Read the RULES you have agreed to.
 
 
 


Old
  Post #4 (permalink)   12-06-2004, 07:57 PM
HD Community Advisor
 
ANMMark's Avatar
 
Join Date: Sep 2004
Location: Pennsylvania
Posts: 1,580

Status: ANMMark is offline
no problem. Let me know how it works out.

If you need any help getting it to run, let me know.
__________________
Mark - Co-President/Lead Developer
avidInteractive Software
The ServeraSuite 2007 Award Winning Professional Server Monitoring Solution - Click here
 
 
 


Old
  Post #5 (permalink)   12-23-2004, 12:57 AM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Location: Montreal, Canada
Posts: 5,230

Status: Artashes is offline
OK, it doesn't seem to work.

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.
__________________
Welcome to our web hosting community for grownups.

Read the RULES you have agreed to.
 
 
 


Old
  Post #6 (permalink)   12-23-2004, 08:25 AM
HD Community Advisor
 
ANMMark's Avatar
 
Join Date: Sep 2004
Location: Pennsylvania
Posts: 1,580

Status: ANMMark is offline
Quote:
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?
__________________
Mark - Co-President/Lead Developer
avidInteractive Software
The ServeraSuite 2007 Award Winning Professional Server Monitoring Solution - Click here
 
 
 


Old
  Post #7 (permalink)   12-23-2004, 01:36 PM
HD Management Staff
 
Artashes's Avatar
 
Join Date: Apr 2003
Location: Montreal, Canada
Posts: 5,230

Status: Artashes is offline
Quote:
Originally Posted by ANMMark
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!
__________________
Welcome to our web hosting community for grownups.

Read the RULES you have agreed to.
 
 
 


Old
  Post #8 (permalink)   12-23-2004, 02:11 PM
HD Community Advisor
 
ANMMark's Avatar
 
Join Date: Sep 2004
Location: Pennsylvania
Posts: 1,580

Status: ANMMark is offline
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?
__________________
Mark - Co-President/Lead Developer
avidInteractive Software
The ServeraSuite 2007 Award Winning Professional Server Monitoring Solution - Click here
 
 
 


Old
  Post #9 (permalink)   01-21-2005, 05:34 PM
HD Newbie
 
Join Date: Jan 2005
Posts: 38

Status: Smokey is offline
I sear that cron jobs are the devil to me. I can't seem to figure them out. Maybe I found my kryptanite
 
 
 


Old
  Post #10 (permalink)   01-24-2005, 02:24 PM
HD Amateur
 
Join Date: Jan 2005
Posts: 89

Status: Grafiti ONLINE is offline
You should try to use insted of url a internal path like

/home/public_html/scriptfolder/script_name.cgi
__________________
Grafiti ONLINE Web Hosting Solutions
sales[at]grafitihosting.com
Grafitionlinehosting.com - since 2003 - Shared and Reseller Solutions
BulkTemplate.com - Hi Quality Ready-made website templates
 
 
 


Old
  Post #11 (permalink)   01-24-2005, 02:28 PM
HD Community Advisor
 
Blue's Avatar
 
Join Date: Oct 2003
Location: PEI
Posts: 1,900

Status: Blue is offline
That would be fine unless it's an external URL.
__________________
Hampshire Hosting
Affordable Shared and Reseller Hosting
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On