473,320 Members | 2,122 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.

how to write automaticly running script?

How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
Feb 13 '08 #1
5 1509
On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pa************@gmail.com>
wrote:
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
Just use a cron job, or if on Windows, schedule a task.
--
Rik Wasmus
Feb 13 '08 #2
On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed...@gmail.com>
wrote:
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?

Just use a cron job, or if on Windows, schedule a task.
--
Rik Wasmus
but, I have my webpage on server and I don't know how to use this what
you advise me from php code, could you give me any example?
Feb 14 '08 #3
On 14 Feb, 08:10, Pawel_Iks <pawel.labed...@gmail.comwrote:
On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed...@gmail.com>
wrote:
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
Just use a cron job, or if on Windows, schedule a task.
--
Rik Wasmus

but, I have my webpage on server and I don't know how to use this what
you advise me from php code, could you give me any example?
If you don't have access to a CLI version of PHP then you'll need to
trigger the script via the webserver.

You can invoke a web page remotely from a scheduled job using (for
example) wget which is available for Unix/Linux/MSWindows. So even if
you don't have access to schedule a job on the server you could set up
the job on any internet connected machine to trigger the request.

RTFM for how to set up a scheduled job.

C.
Feb 14 '08 #4
This is an approach I have taken before.
In my situation it was a script that would delete old database entries
past a certain date, and since those updates are only needed prior to
being viewed by a visitor, the first visitor for that day would trigger
the script.
Its not pretty, but its effective.

Scotty
C. (http://symcbean.blogspot.com/) wrote:
On 14 Feb, 08:10, Pawel_Iks <pawel.labed...@gmail.comwrote:
>On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
>>On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed...@gmail.com>
wrote:
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
Just use a cron job, or if on Windows, schedule a task.
--
Rik Wasmus
but, I have my webpage on server and I don't know how to use this what
you advise me from php code, could you give me any example?

If you don't have access to a CLI version of PHP then you'll need to
trigger the script via the webserver.

You can invoke a web page remotely from a scheduled job using (for
example) wget which is available for Unix/Linux/MSWindows. So even if
you don't have access to schedule a job on the server you could set up
the job on any internet connected machine to trigger the request.

RTFM for how to set up a scheduled job.

C.
Feb 14 '08 #5
On Feb 13, 10:11*pm, Pawel_Iks <pawel.labed...@gmail.comwrote:
How to write script which will be run automaticaly on server at some
dates (for example on each monday at 5 pm)? Is it possible to do it?
On Unix/Linux/MacOS you might use launchd or cron, and run wget or
curl at scheduled times
Feb 15 '08 #6

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

Similar topics

1
by: Kevin Potter | last post by:
We have an application that has been running on IIS4 and IIS5 for quite some time, without problem We're now migrating to IIS6 (windows/2003), and have run into a what might? be a Javascipt...
13
by: Stumped and Confused | last post by:
Hello, I really, really, need some help here - I've spent hours trying to find a solution. In a nutshell, I'm trying to have a user input a value in form's textfield. The value should then be...
2
by: Jenny | last post by:
In the code below, I can write html content var t='<body BGCOLOR=blue>' for a new window. But if it contains javascript, such as var t='<body onload="window.open('new1.html')">', this code will...
3
by: Paul Thompson | last post by:
I am working with a special tool which pre-processes the page. Using document.write, I am composing the page while it is loading, so I need to force a reprocess of the page AFTER the page loads. ...
12
by: Sean | last post by:
Hi, I have the following script: ----------------------------------------------------------------------------------- <script type="text/javaScript"> <!-- document.write('<div...
1
by: Jianwei Sun | last post by:
Hi, Dear gurus, I started to write a test project in VS 2005. I created a blank test project generated by wizard. Every time, when I start the project, the result is "Aborted", and the...
2
by: Carl Gilbert | last post by:
Hi I am trying to get an online gallery (www.ngallery.org - open source) to upload image to a folder. At the moment I am using localhost but plan to move to some web space when I get it all...
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
9
by: andy.z | last post by:
If 2 people try to access the same text file at the same time to write to it - what happens in PHP ? What I mean is - presumably the first will be ok - But what will the second person actually...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
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...
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)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.