| 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: |
| Crontab help | |
|---|---|
| Tweet Topic Started: Jun 5 2005, 09:32 AM (288 Views) | |
| kingy | Jun 5 2005, 09:32 AM Post #1 |
|
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 |
![]() |
|
| Seth | Jun 5 2005, 10:07 AM Post #2 |
|
I has a pony
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
cron is a Linux program. Just type man crontab to see how to use it. |
![]() |
|
| Rory | Jun 5 2005, 10:09 AM Post #3 |
|
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 |
![]() |
|
| kingy | Jun 5 2005, 03:02 PM Post #4 |
|
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 |
![]() |
|
| Dennis | Jun 6 2005, 07:32 PM Post #5 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Cron is Unix only. ![]() The closest thing that windows would mhave would be the Task Scheduler, which is of course inferior.
|
![]() |
|
| kingy | Jun 7 2005, 03:55 AM Post #6 |
|
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 |
![]() |
|
| kingy | Jun 7 2005, 12:52 PM Post #7 |
|
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 |
![]() |
|
| Seth | Jun 7 2005, 01:04 PM Post #8 |
|
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. |
![]() |
|
| ultra mc | Jun 7 2005, 04:26 PM Post #9 |
![]()
Im from the ment-al-in-sta-tute
![]() ![]() ![]() ![]()
|
^^does not understand anything of the above^^lol |
![]() |
|
| kingy | Jun 8 2005, 05:24 PM Post #10 |
|
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 |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
7:34 PM Jul 11
|



![]](../../../../0/1/0/p601690/pipright.png)






7:34 PM Jul 11