We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Crontab help
Topic Started: Jun 5 2005, 09:32 AM (288 Views)
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
I have been reading about something called Crontab, i have it on my host, and i was wondering what code it can launch.

The only examples i have seen have been cgi, but i was wondering if it could run a php script to increment a database value every hour.

So basically...

I have a code, that, when run, adds 1 to a value i have stored in my database. I want this value to increment once every hour, so is it possible for crontab to automate this for me?

If not, no worries, i am a curious person

Kingy

also, can you use crontab with phpdev? if so, how
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
cron is a Linux program. Just type man crontab to see how to use it.
Offline Profile Quote Post Goto Top
 
Rory
i;m a mess
[ *  *  *  *  *  *  * ]
If you read through this topic, there are examples and some links about how to use a cron job to do what you want :)

http://support.invisionfree.com/index.php?showtopic=141247
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
so cron won't run on a windows server?

thansk for the link btw, i know how to run one on my host now...thanks
Offline Profile Quote Post Goto Top
 
Dennis
Member
[ *  *  *  *  *  *  * ]
Cron is Unix only. ;)

The closest thing that windows would mhave would be the Task Scheduler, which is of course inferior. :)
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
I run apache on my pc, so it will have to be Task Schedular till i get my new pc next month. gonna dual boot it

thanks everybody
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
Sorry for the double post, but it has been ages since that post and this is not a bump.


Can the task schedular run a program hosted somewhere else? for example i am running a website on a free host until i can get it hosted on my machine. I want to test the task schedular thing, but it only seems to be able to run stuff on my machine? so can i make it run a .php page hosted elsewhere?

Thanks

Kingy
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
You could maybe get it to load a web browser pointed at that page. That'd be about it. Task Scheduler is pretty ghetto.
Offline Profile Quote Post Goto Top
 
ultra mc
Member Avatar
Im from the ment-al-in-sta-tute
[ *  * ]
^^does not understand anything of the above^^lol
Offline Profile Quote Post Goto Top
 
kingy
1 in 10 people understands binary, the other 1 doesn't
[ *  *  *  *  *  * ]
yeah task schedular is awful...

Waiting for my nice shiny new pc...then i can use cron
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply