By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,614 Members | 1,674 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,614 IT Pros & Developers. It's quick & easy.

how to write automaticly running script?

P: n/a
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
Share this Question
Share on Google+
5 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.