473,320 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

hourly ?

Is it possible to make a script that will run every hour ?
If not with PHP is this possible with perl ?

I ask this cause im doing a online game and i need to run a script every
hour or close to it, i currently use a fonction that runs every time someone
logs to one of the pages, it checks the times and acts in fonction, its not
a problem how i did it but if could make it user independant it would be
better.

BTW if anyone has made a online game that needed this kind of thing too, how
did you proceed ?

My server allows this scripts
Scripts
- CGI folder
- PHP4, Perl, C, Python, KSH, CSH
CSH und Unix SH
- Perl-Script-Checker
Jul 17 '05 #1
4 1488

On 27-Feb-2004, "Marco" <mpgtlatbluewindotch> wrote:
Is it possible to make a script that will run every hour ?
If not with PHP is this possible with perl ?

I ask this cause im doing a online game and i need to run a script every
hour or close to it, i currently use a fonction that runs every time
someone
logs to one of the pages, it checks the times and acts in fonction, its
not
a problem how i did it but if could make it user independant it would be
better.

BTW if anyone has made a online game that needed this kind of thing too,
how
did you proceed ?

My server allows this scripts
Scripts
- CGI folder
- PHP4, Perl, C, Python, KSH, CSH
CSH und Unix SH
- Perl-Script-Checker


Sounds like Unix/Linux, setup a crontab entry to run the script every hour.

--
Tom Thackrey
www.creative-light.com
tom (at) creative (dash) light (dot) com
do NOT send email to ja*********@willglen.net (it's reserved for spammers)
Jul 17 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco wrote:
Is it possible to make a script that will run every hour ?
If not with PHP is this possible with perl ?


What you are looking for is cron. Login to your server using
SSH and do a "man cron" and "man crontab" (without quotes)
Bob


-----BEGIN PGP SIGNATURE-----
Comment: B. Johannessen <bo*@db.org> - http://db.org/contact/en/

iD8DBQFAQBCcooisUyMOFlgRAiCYAJ942JcyQs+g8DxJgta0iI 2Zn1uWVwCZAcIU
J7/AVRR/KStp5nblwo4L6sw=
=MEYK
-----END PGP SIGNATURE-----
Jul 17 '05 #3

"B. Johannessen" <bo*@db.org> wrote in message
news:wg******************@news2.e.nsc.no...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco wrote:
Is it possible to make a script that will run every hour ?
If not with PHP is this possible with perl ?


What you are looking for is cron. Login to your server using
SSH and do a "man cron" and "man crontab" (without quotes)
Bob


-----BEGIN PGP SIGNATURE-----
Comment: B. Johannessen <bo*@db.org> - http://db.org/contact/en/

iD8DBQFAQBCcooisUyMOFlgRAiCYAJ942JcyQs+g8DxJgta0iI 2Zn1uWVwCZAcIU
J7/AVRR/KStp5nblwo4L6sw=
=MEYK
-----END PGP SIGNATURE-----


Any site where they explain on how to do it ?
Jul 17 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marco wrote:
"B. Johannessen" <bo*@db.org> wrote in message
Marco wrote:
Is it possible to make a script that will run every hour ?
If not with PHP is this possible with perl ?

What you are looking for is cron. Login to your server using
SSH and do a "man cron" and "man crontab" (without quotes)

Any site where they explain on how to do it ?


The "man cron" and "man crontab" manual pages should be a good
start. If not, how about:

http://www.unixgeeks.org/security/ne...ix/cron-1.html

Anyway, this has nothing to do with PHP as such, so if you want
help understanding how cron works it's probably better to ask in
an appropriate unix group.
Bob

-----BEGIN PGP SIGNATURE-----
Comment: B. Johannessen <bo*@db.org> - http://db.org/contact/en/

iD8DBQFAQJHDooisUyMOFlgRAkcUAKCiPNK64OtQd8V7hTA/+01zxZ5hcACeLjsA
JEL/KNUqkrw9uipH9+2talM=
=+Z/z
-----END PGP SIGNATURE-----
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Philip D Heady | last post by:
I'm in need of a good PHP programmer to help me with my lodgings website asap. Someone who can work on it during the day for a few hrs while I'm at work would be great. Prefer they live in USA...
5
by: Anthony | last post by:
First time here so please bear with me. Set up a DTS package to export data to an excel sheet on an hourly basis. Problem is, it keeps appending to the same excel sheet. Any idea how to...
4
by: Sam | last post by:
Hello everyone, I have around 20 reports in an ASP web-application which connects to a SQL Server 2000 dB, executes stored procedures based on input parameters and returns the data in a nice...
3
by: Brett | last post by:
For those of you working hourly, are you paid time and a half for anything over 40 hours? Say you are making $50/hour. Once you go over 40, your rate goes up to $75. If so, do you find it...
7
by: Compliance | last post by:
Apologies for the simplicity of the question, but it reflects my capabilities! I have the following sample fields coming from different tables: Location TimeDate (timestamp) Data I need to...
13
by: danceli | last post by:
I have two servers, using SQL server 2000. I was asked for implementing hourly Backup 3 databases in one server and restore those databases to another server. Could anyone give me the detailed...
4
by: MPD | last post by:
Hi How can I create a job in sql agent to create a new snapshot every hour? I have, for eg a T-SQL that does it manually. create database Snapshotter_snap_20070418_1821 on ( name =...
9
by: tommo5 | last post by:
Please help! im new to SQL and im finding a way of calculating an hourly avg difficult. This is what i have so far for all the data for the week - but i want an hourly avg instead of every second...
0
by: tommo5 | last post by:
Please help! im new to SQL and im finding a way of calculating an hourly avg difficult. This is what i have so far for all the data for the week - but i want an hourly avg instead of every second...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.