x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

Reply
 
LinkBack Thread Tools Display Modes
x10 Sophmore

fierce's Avatar

Join Date: Jul 2008
Posts: 178
Credits: 3,099
fierce is on a distinguished road
Location: Macedonia

Send a message via MSN to fierce
Quote  
09-30-2008, 05:13 PM
Cron Jobs

I got problem with running the turn script on my game www.eraoferadication.co.cc .I entered this in the cron jobs "/fierce/local/bin/php turns.php" and made folder leading to the path .
Pls some1 good @ cron jobs tell me what should I do ..

Thx in Advance

fierce .
__________________
If my post has helped ya or ya like my jokes hit the +REP button
http://www.eraoferadication.co.cc

HTML Code:
http://forums.x10hosting.com/marketplace/85707-req-1000-credits-4-exchange.html

Last edited by fierce; 09-30-2008 at 05:14 PM.
Reply With Quote
fierce is offlineReport Post
x10 Sophmore

Salvatos's Avatar

Join Date: Jun 2006
Posts: 226
Credits: 2,052
Salvatos has a spectacular aura about
Location: Québec, Canada

Quote  
09-30-2008, 06:15 PM
Re: Cron Jobs

I'm not particularly "good at cron jobs" but I'm using this line for the very same purpose as you. Yours should be this:

"php -q /home/fierce/local/bin/php turns.php"

Except that a space in a file name is probably not a good idea, you may want to place an underscore "_" instead (unless you actually meant bin/php/turns.php).

The -q prevents it from sending you an e-mail, you can remove it if your prefer.

Last edited by Salvatos; 09-30-2008 at 06:16 PM.
Reply With Quote
Salvatos is offlineReport Post
x10 Sophmore

fierce's Avatar

Join Date: Jul 2008
Posts: 178
Credits: 3,099
fierce is on a distinguished road
Location: Macedonia

Send a message via MSN to fierce
Quote  
10-01-2008, 11:32 AM
Re: Cron Jobs

I tried with both "php -q /home/fierce/local/bin/php turns.php" ,

"php -q /home/fierce/local/bin/php_turns.php" ,

"php -q /home/fierce/local/bin/php/turns.php" and without

php - q and none

of this works...now I gtg but l8rs will post more info 'bout the

problem ..

some1 with good xp in this stuff ..pls help me ..willing to give

credits as well if some1 help me run the turn script .

Thx in Advance

fierce .
__________________
If my post has helped ya or ya like my jokes hit the +REP button
http://www.eraoferadication.co.cc

HTML Code:
http://forums.x10hosting.com/marketplace/85707-req-1000-credits-4-exchange.html
Reply With Quote
fierce is offlineReport Post
x10 Sophmore

Salvatos's Avatar

Join Date: Jun 2006
Posts: 226
Credits: 2,052
Salvatos has a spectacular aura about
Location: Québec, Canada

Quote  
10-01-2008, 07:38 PM
Re: Cron Jobs

Don't you get any error? If the cron job does not work, it's supposed to send you an error e-mail. If it doesn't, you should consider revising your script itself.
Reply With Quote
Salvatos is offlineReport Post
x10 Sophmore

fierce's Avatar

Join Date: Jul 2008
Posts: 178
Credits: 3,099
fierce is on a distinguished road
Location: Macedonia

Send a message via MSN to fierce
Quote  
10-02-2008, 07:01 AM
Re: Cron Jobs

Status: 404 Not Found X-Powered-By: PHP/5.2.6 Content-type: text/html No

input file specified. - this is what I was getting when the command was

/usr/local/bin/php turns.php ..now when I changed to

/home/fierce/local/bin/php/turns.php ..I'm getting nothing ..I will send the

user and the pass of my cPanel to some1 good with this to make it work

and will give 100 credits if it successfull .

fierce .
__________________
If my post has helped ya or ya like my jokes hit the +REP button
http://www.eraoferadication.co.cc

HTML Code:
http://forums.x10hosting.com/marketplace/85707-req-1000-credits-4-exchange.html
Reply With Quote
fierce is offlineReport Post
x10 Sophmore

Scoochi2's Avatar

Join Date: Aug 2008
Posts: 118
Credits: 1,277
Scoochi2 will become famous soon enough
Location: Southport!

Quote  
10-02-2008, 06:17 PM
Re: Cron Jobs

I have cronjobs working perfectly for me.
First of all, at the top of the script you want to run, make sure the first line (before ANYTHING, even a newline) is the following:
Code:
#!/usr/local/bin/php -q
I admit that I'm not certain you need it, but it doesn't hurt anyway.
Then, for the 'command to run' in the cronjobs section of the cpanel, make it something along the lines of the following:
Code:
php-cron /home/fierce/public_html/cron.php
The above two things are exactly what I did, and it works perfectly
__________________
If anyone can see it, my post was meant for anyone who reads it. Don't take it personally or think I'm being condescending...
Reply With Quote
Scoochi2 is offlineReport Post
x10 Sophmore

Salvatos's Avatar

Join Date: Jun 2006
Posts: 226
Credits: 2,052
Salvatos has a spectacular aura about
Location: Québec, Canada

Quote  
10-02-2008, 11:36 PM
Re: Cron Jobs

Just for the record, I don't have the first line you mentioned, just usual PHP, and it works perfectly as well, so I'd say it doesn't seem to be crucial.

And as someone once said to me, you probably don't want your cron job in a public directory, because anyone finding the url can activate the script by visiting the page (unless you password protect it, but I don't know if it can prevent the cron from accessing it as well so I haven't tried it).
Reply With Quote
Salvatos is offlineReport Post
x10 Sophmore

fierce's Avatar

Join Date: Jul 2008
Posts: 178
Credits: 3,099
fierce is on a distinguished road
Location: Macedonia

Send a message via MSN to fierce
Quote  
10-03-2008, 06:05 PM
Re: Cron Jobs

ok Scoochi2 ..I'll send ya my cPanel user and pass via PM ..and pls look into it

and fix it ..If it works you'll get 100 x10 credits .

fierce .
Edit:
I'm increasing the prize up to 300 credits .
Edit:
I'd ask 4 some from the stuff to check if there might be an error in the cron

jobs ..coz I tried lot of different ways of launching the turn script but none of

them happens to work ..

Thx in Advance
__________________
If my post has helped ya or ya like my jokes hit the +REP button
http://www.eraoferadication.co.cc

HTML Code:
http://forums.x10hosting.com/marketplace/85707-req-1000-credits-4-exchange.html

Last edited by fierce; 10-03-2008 at 06:06 PM. Reason: Automerged Doublepost
Reply With Quote
fierce is offlineReport Post
x10 Sophmore

Salvatos's Avatar

Join Date: Jun 2006
Posts: 226
Credits: 2,052
Salvatos has a spectacular aura about
Location: Québec, Canada

Quote  
10-04-2008, 12:06 AM
Re: Cron Jobs

I'm not really comfortable with going into someone else's cPanel but I guess I could have a look during the weekend. But please check first with a moderator if it's allowed, because I think it is not and I don't want the both of us to get suspended...
Reply With Quote
Salvatos is offlineReport Post
x10 Sophmore

fierce's Avatar

Join Date: Jul 2008
Posts: 178
Credits: 3,099
fierce is on a distinguished road
Location: Macedonia

Send a message via MSN to fierce
Quote  
10-05-2008, 04:38 PM
Re: Cron Jobs

I found the problem in the php not in the cron jobs ..so now it works ..thx 2

every1 that tried to help me .I decided to give 30 credits all ppl that

helped .

Thx again

fierce .
__________________
If my post has helped ya or ya like my jokes hit the +REP button
http://www.eraoferadication.co.cc

HTML Code:
http://forums.x10hosting.com/marketplace/85707-req-1000-credits-4-exchange.html
Reply With Quote
fierce is offlineReport Post
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CRON Jobs and PHP deadimp Tutorials 14 11-27-2008 06:09 PM
Cron Tutorial (Crontab Tutorial) sunils Tutorials 3 06-14-2008 11:34 PM
Cron Jobs and Facebook dmallenby Free Hosting 2 11-14-2007 11:04 AM
Cron Jobs stuffradio Scripts & 3rd Party Apps 9 11-12-2007 08:01 PM
cron jobs help TarinC Scripts & 3rd Party Apps 5 09-19-2006 04:45 PM


All times are GMT -5. The time now is 07:20 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Remortgages | eHarmony Promotional Code | 3dge Viral Emails | Mobile Phone | Debt Consolidation