Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / Free hosted Cron Jobs

Author
Message
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 03:14
Hi,

Does anybody knwo of any places where you can get either

- free hosting that has cron jobs enabled

- or just a service that'll do cron for you?

I have quite a high spec shared hosting package but it doesn't allow cron - I need cron for my next project in PHP and so I've had to try and find other solutions.

Incidentally, if anybody is feeling really kind, if you do have cron enabled would you mind calling a script like this:



once every hour?

Thanks in advance

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Oct 2004 03:54
I asssume thats something to do with the plane thing

I have no idea what Cron is

:: Current Project: C&C Style RTS :: Want Gmail? Email me ::
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 03:55
Cron is a feature where you can specify a script to be run at regular intervals.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Oct 2004 03:56
ah as in cronological...however that is spelt

:: Current Project: C&C Style RTS :: Want Gmail? Email me ::
Final Epsilon
20
Years of Service
User Offline
Joined: 26th Jan 2004
Location: CA, USA
Posted: 17th Oct 2004 04:06
Instead of using a Cron job, each time a person views a page, couldn't you just check for the last time the script was run, and then call it if it is over the interval? I know several other scripts use that as an alternative to cron.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 06:43
No - I must have the script run every hour. I'm writing my own game, and a new cycle starts every hour

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Mnemonix
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: Skaro
Posted: 17th Oct 2004 06:57
You mean like in LOGD, where you have to wait to the end of the turn?

The 3d chat is coming...
In the meantime, come in the IRC. Ask me for details!!.
bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Oct 2004 07:01
Quote: "No - I must have the script run every hour. I'm writing my own game, and a new cycle starts every hour "


but if nobody visits for two hours..what's it matter? Just calculate all the info once someone views a page and send it off...


No plot? No problem! Come write with the worst of us!
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Oct 2004 07:03
its when it collects info and processes it. Correct? it would be impractable to do that.

:: Current Project: C&C Style RTS :: Want Gmail? Email me ::
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 17th Oct 2004 07:19
http://www.google.com/search?hl=en&q=free+cron+job+hosting&btnG=Google+Search

google is your friend.


High quality models and graphics, low prices. Graphics for the rest of us.
Neofish
20
Years of Service
User Offline
Joined: 7th Apr 2004
Location: A swimming pool of coke
Posted: 17th Oct 2004 07:20
lol "free cron job hosting" that prob wont work

:: Current Project: C&C Style RTS :: Want Gmail? Email me ::
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 17th Oct 2004 07:21
and yet, it does, just look at the first link it provides


High quality models and graphics, low prices. Graphics for the rest of us.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 07:22
Quote: "but if nobody visits for two hours..what's it matter? Just calculate all the info once someone views a page and send it off..."


This is for an airline game. At the end of each 'day' (1 hour) there are many things that must be done.

I can't just leave it for two hours then recalculate when somebody comes back on again as I'll have lost a whole cycle. I'm afraid I just can't do it that way.

You way would work if I had a site that harvested new, say, twice a day - but it wouldn't work for what I need.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 07:23
Quote: "google is your friend."


Thanks for the smart remark. I've already checked most of the sites listed there, plus searched on loads of other forums

(google was the first place I looked )

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 17th Oct 2004 07:25
http://www.free-webhosts.com/free-cron.php

That's the first google result for me. It has a listing of sites who provide free hosting with cron jobs enabled. I've checked a few of them out, and they look legit.


High quality models and graphics, low prices. Graphics for the rest of us.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 08:04
Jebus - I've already seen that site today (I did a search on google before posting here, lol) and there are only two sites there that don't require any forum posting. One has notorious downtime problems and I'm awaiting a confirmation email from the other.

I just asked on here to see if anybody else had any good services or personal recommendations.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 17th Oct 2004 08:07
OK, just making sure as search engines sometimes have a habit of displaying different results for different folks depending on their ip block.

Which one's did you apply for? I just did 000k.com and am awaiting approval. I'll let you know how it is when / if I get it.


High quality models and graphics, low prices. Graphics for the rest of us.
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 17th Oct 2004 13:57
Double post to get David T's attention again.

I just got my approval from 000k.com, and everything seems good. Just letting you know it's an option.


High quality models and graphics, low prices. Graphics for the rest of us.
Wiggett
21
Years of Service
User Offline
Joined: 31st May 2003
Location: Australia
Posted: 17th Oct 2004 14:29
isn't it spelt with a h? chronological.

bitJericho
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location: United States
Posted: 17th Oct 2004 17:16
eh... why not? When you go over the hour your info will be processed in less then a second assumedly..

so if two hours pass.. process twice.. sheesh, you don't need to waste server resources by *forcing* to do it every hour..


No plot? No problem! Come write with the worst of us!
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 17th Oct 2004 17:43
@DavidT - I can do that cron for you off my server. The only thing is, it needs a certain "command" that will be run at a specified interval. I've entered http://www.davidtattersall.me.uk/game/update.php as the command, but I don't think it will work. Anyways, I've set it to email me after each try so I'll let you know.


--[Gang Wars of New Canada]-- ^^^ banner generously designed by TheBigBabou
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 18:36
Quote: "Double post to get David T's attention again."

I was offline

I'm waiting for mine still, I'll let you know how it goes on. Thanks for you help.

@Jeku - Thanks very much. The script isn't there at the moment, but I want to make sure I have something ready so I can test when the time comes.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 17th Oct 2004 18:38
Crap. Looks like that "command" doesn't work. If you know of a Unix command which loads a webpage, then I can use it. Unfortunately http://www.davidtattersall.me.uk/game/update.php by itself doesn't work Sorry.


--[Gang Wars of New Canada]-- ^^^ banner generously designed by TheBigBabou
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 17th Oct 2004 18:44
Jeku - you can't run PHP scripts directly via cron. You need to either have PHP installed in binary form (and then David would need to reference that in the first line of his script with a standard hashbang), or you run the PHP script through something like Lynx. This works okay for us:

13 23 * * * /usr/local/bin/lynx -dump -auth:user:pass http://www.site.com/file.php

Drop the -auth section if it doesn't need it.

Cheers,

Rich

"I am not young enough to know everything."
- Oscar Wilde
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 17th Oct 2004 18:53
THanks for the info Rich. I've done some research and it seems that lynx will be fine.

Jeku, I'll contact you near the time when I have something tangible to test - thanks alot again.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
BearCDPOLD
20
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 18th Oct 2004 05:36
So how is 000k?

Crazy Donut Productions, Current Project: Project Starbuks
Sony stole our name!
JeBuS
20
Years of Service
User Offline
Joined: 20th Jul 2004
Location: Undisclosed Location, Dominion of JeBuS
Posted: 18th Oct 2004 05:47
Looks pretty good so far. They give you mail addys, FTP access, MySQL and PostgreSQL database, Stats, subdomain, Cron jobs, and a bunch of other stuff.


High quality models and graphics, low prices. Graphics for the rest of us.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 18th Oct 2004 16:43
No email so far

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"

Login to post a reply

Server time is: 2024-09-22 20:30:42
Your offset time is: 2024-09-22 20:30:42