Alligatoras
Administrator
- Mar 31, 2016
- 2,570
- 12
- 2,855
- 381
probably they forgot to change some filesYes, I have same problem
probably they forgot to change some filesYes, I have same problem
$Online_time = $client['clientLastConnected'] - $client['clientCreted'];
i think that's should work
in what file should i edit that my friend? can you specify that please?
Click on this link mate: http://ts-n.net/ranksystem.phpHow do I update the Ranking system? I don't want to delete everything. Will it work if I just link it with the database?
No problem my friend....that's why we are all here...to help one each other!!!Oh yea... I never saw that section thanks!
You need to check your logs to see why it's stopping!It stops everytime i also set the cronjob maybe i did it false can someone make a screenshot of his cronjob settings maybe i did something wrong ???
remove "dev/null" part from your crontab to achieve what he says ^You need to check your logs to see why it's stopping!
No need to do that if you specify a log path in the webinterface, right?remove "dev/null" part from your crontab to achieve what he says ^
yeah, you're right about that.. hopefully he will post his logs soonNo need to do that if you specify a log path in the webinterface, right?
1- Open crontab with this :Because i got confused, can somebody type the whole command for the crontab?
# sudo crontab -e
*/10 * * * * sudo -u www-data php /YOUR_RANKSYSTEM_PATH/worker.php check >/dev/null 2>&1
.---------------- minute (0 - 59)
| .------------- hour (0 - 23)
| | .---------- day of month (1 - 31)
| | | .------- month(1 - 12)
| | | | .---- day of week (0 - 6) (Sunday=0 or 7)
| | | | |
* * * * * command to execute
">" is for redirect
"/dev/null" is a black hole where any data sent, will be discarded
"2" is the file descriptor for Standard Error
">" is for redirect
"&" is the symbol for file descriptor (without it, the following 1 would be considered a filename)
"1" is the file descriptor for Standard Out
Therefore >/dev/null 2>&1 is redirect the output of your program to /dev/null. Include both the Standard Error and Standard Out.
cron will only email you if there is some output from you job.
With everything redirected to null, there is no output and hence cron will not email you.
Thank you for your explanation @qwelethe ! I already know how to use cron tab though. I just got confused with the * check >/dev/null 2>&1 * that @Qraktzyl said that needs to be removed!1- Open crontab with this :
"-e" means edit.Code:# sudo crontab -e
2- After this code add this code to crontab's last empty line:
Code:*/10 * * * * sudo -u www-data php /YOUR_RANKSYSTEM_PATH/worker.php check >/dev/null 2>&1
3- And save it ( ctrl + o -> YES(enter) ctrl + x ) ( I am using nano text editor, this is for nano )
Command explanation:
Code:.---------------- minute (0 - 59) | .------------- hour (0 - 23) | | .---------- day of month (1 - 31) | | | .------- month(1 - 12) | | | | .---- day of week (0 - 6) (Sunday=0 or 7) | | | | | * * * * * command to execute
Code:">" is for redirect "/dev/null" is a black hole where any data sent, will be discarded "2" is the file descriptor for Standard Error ">" is for redirect "&" is the symbol for file descriptor (without it, the following 1 would be considered a filename) "1" is the file descriptor for Standard Out Therefore >/dev/null 2>&1 is redirect the output of your program to /dev/null. Include both the Standard Error and Standard Out. cron will only email you if there is some output from you job. With everything redirected to null, there is no output and hence cron will not email you.
Source:
1- https://en.wikipedia.org/wiki/Cron
2- http://unix.stackexchange.com/quest...ull-21-mean-in-this-article-of-crontab-basics
If you want to see Errors or Outputs you need to delete this part it is true. After that crontab send you mails about error or outputs, I guess
*/10 * * * * sudo -u www-data php /YOUR_RANKSYSTEM_PATH/worker.php printf > /var/log/error_log_ranksystem
Array
(
[0] => 42000
[1] => 1064
[2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's Property★ | '),('B6DgwIytbTDnwoTUfp3g9iuE1AE=', '24', '0', '0', '0', '0', '8' at line 1
)