Posted by jurij.rosenthal on 03/19/07 08:43
On Mar 19, 12:45 am, "Alan Larsson" <newsgr...@alstown.com> wrote:
> Not sure if PHP is right for this... but maybe you guys can point me the
> right way.
>
> I want a website that with the click of a button by someone accross the web
> can run a predefined scheduled task on the web server.
You hopefully talk about Linux.
Here is how I would do it: Set up cron (using crontab -e) so that
it executes a script that checks periodically for a file (for example;
I think this is easier). This file is created by a Php or Perl script
run
in the web server. If the file exists the script triggered by cron
executes the predefined scheduled task.
Hope it helps.
Cheers
Jurij
[Back to original message]
|