LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-05-2012, 05:48 PM   #1
rowza
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Need help Cron isnt working on my website


HI all I have cron set up on my Mafia text based game. For some reason it isnt activating though
www.mafia-gang.com
mafia.scripthosting.com
example:
Brave - you should get 2 brave points back every 5 minutes... I have it set up
Code:
*/5	*	*	*	*	http://mafia.scripthostings.com/cron_run_five.php	Edit   Delete
*	*	*	*	*	http://mafia.scripthostings.com/cron_run_minute.php	Edit   Delete
0	*	*	*	*	http://mafia.scripthostings.com/cron_run_hour.php	Edit   Delete
0	0	*	*	*	http://mafia.scripthostings.com/cron_run_day.php
Why isnt it working ?

Thanks in advance

Last edited by colucix; 11-07-2012 at 05:34 AM. Reason: Edited links (not clickable now) plus added CODE tags
 
Old 11-07-2012, 07:17 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,696

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Welcome to LinuxQuestions

In a nutshell cron is not associated with the desktop and has a very limited environment so it does not know what to do. What is the "Edit Delete" supposed to represent? I know nothing about the game or how it works but it looks a little like cheating... That said curl is probably what you need.

http://curl.haxx.se/docs/httpscripting.html
 
Old 11-07-2012, 07:29 AM   #3
rowza
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Welcome to LinuxQuestions

In a nutshell cron is not associated with the desktop and has a very limited environment so it does not know what to do. What is the "Edit Delete" supposed to represent? I know nothing about the game or how it works but it looks a little like cheating... That said curl is probably what you need.

http://curl.haxx.se/docs/httpscripting.html
I copy pasted off the Cron on cpanel and followed the instructions ....

*/5 * * * * curl http://yousite.com/cron_run_five.php

* * * * * curl http://yousite.com/cron_run_minute.php

0 * * * * curl http://yousite.com/cron_run_hour.php

0 0 * * * curl http://yousite.com/cron_run_day.php


Time based things will work only if the cron jobs has properly set up .

Time based things depends upon cron-jobs such as recovery time , jail function etc ,energy refill etc .

Jail and Hospital - every 1 minute

Users stats such as enery , health refill - every 5 minutes
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm isnt working jancat Linux - Server 5 07-03-2008 12:09 PM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 01:57 AM
Multi-OS is that why it isnt working??? CiscoNinja Linux - Newbie 8 10-01-2005 07:05 PM
Network isnt working right roger.k Linux - Newbie 2 08-11-2004 06:33 PM
help,windows isnt working Geefthegreat Linux - Newbie 2 04-06-2004 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration