28, May 2012

Cron Job Question - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: Cron Job Question
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Cron Job Question  (Read 1990 times)
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« on: Jul 01, 2006, 10:58:24 pm »

Im trying to set up a cron job in Cpanel 10. I need this cron job to run a file on my ftp called cron.php. What do i put in the "Command to run" box so it will run this cron.php file?

Thanks again.
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #1 on: Jul 01, 2006, 11:03:25 pm »

Try one of those :

Code:
php /path/to/cron/php

and

Code:
curl http://path.to/cron/php

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #2 on: Jul 02, 2006, 12:58:37 am »

neiter worked i tried others like that by changing a little bit and nothing worked  Sad

Edit: Yeah so Im a dumbass. I had it set to run at 2 am. Its workin now thanks Nikolas your code worked  Cool
« Last Edit: Jul 02, 2006, 01:38:04 am by Silent77 »
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #3 on: Jul 02, 2006, 11:18:09 am »

That's good.

BTW which of the two methods worked?

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #4 on: Jul 02, 2006, 11:41:53 am »

http with a little modification...

Code:
wget -O /dev/null http://pathtofile/file.php

I put the stuff before it b/c my friend said to but Im pretty sure what you said would have worked. but I dont know Im not much of a php person  Cool
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Jul 02, 2006, 12:35:07 pm »

This is not about php, it is about linux.

Both wget and curl are commands that do the exact same thing.

The fact that the php command is not working, is good for your hosting provider, otherwise they would propably have some serious security issues, but that is not your concern Smiley

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3114
Tags : php ftp curl cpanel Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server
Topic: Cron Job Question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:29:55 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.