Raised This Month: $ Target: $400
 0% 

Crons Job.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 01-02-2011 , 05:34   Crons Job.
Reply With Quote #1

I dont no how to get Cron Jobs to excute a php script every 5 mins

thats the current command. i already set it on cron jobs to every 5mins
PHP Code:
wget -O http://www.gmreason.com/Inviter/invite_system.php >/dev/null 2>&1 
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 01-02-2011 , 05:40   Re: Crons Job.
Reply With Quote #2

*/5 * * * * wget -O http://www.gmreason.com/Inviter/invite_system.php >/dev/null 2>&1
__________________
DeLiriuM is offline
NAQQASH
Senior Member
Join Date: Dec 2010
Old 01-02-2011 , 05:48   Re: Crons Job.
Reply With Quote #3

How sweet.
__________________
Bye bye AlliedModders.
NAQQASH is offline
shuttle_wave
Veteran Member
Join Date: Apr 2009
Location: New Zealand
Old 01-02-2011 , 05:54   Re: Crons Job.
Reply With Quote #4

Quote:
Originally Posted by DeLiriuM View Post
*/5 * * * * wget -O http://www.gmreason.com/Inviter/invite_system.php >/dev/null 2>&1
yea i did that. doesnt work.
__________________
JailBreak Mod with Plugin API ( 90% ) Public
shuttle_wave is offline
DeLiriuM
Senior Member
Join Date: Dec 2006
Old 01-02-2011 , 10:01   Re: Crons Job.
Reply With Quote #5

Umm.. where is invite_system.php located?? Is it on the machine?
Why don't you exec it from there...
*/5 * * * * php /.../invite_system.php ....
Or try:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * wget ....

With wget you actually download the script... you don't exec it.
__________________
DeLiriuM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-02-2011 , 14:29   Re: Crons Job.
Reply With Quote #6

Quote:
Originally Posted by DeLiriuM View Post
With wget you actually download the script... you don't exec it.
For clarification: You can't download PHP source code via http from a webserver. It will send you the output of that script.
__________________
fysiks is offline
8088
Veteran Member
Join Date: Jan 2008
Old 01-02-2011 , 18:43   Re: Crons Job.
Reply With Quote #7

For further clarification: by downloading its output, it needs to and will be executed first.
Quote:
Originally Posted by shuttle_wave View Post
yea i did that. doesnt work.
When will you learn that "doesn't work" won't get anyone any further? Post the output or error message. Or rtfm.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode