vsloathe

Create a system whereby you (or several users!) had a control panel app, and this control panel let you add scheduled jobs. Say you could log in and say "do this task every 2 hours, and email me the results". How would you go about it?

perkiset

I'd write an itsy cron job that checked a DB for jobs once a minute.

It can go from very GUI to very codish... if I was doing it for *me* then I'd prolly just have a text blob with some code that was executed, or perhaps the name of a

PHP

  file that I wanted run.

Schedulewise, I'd probably mimic cron, or close to it with a couple notable exceptions, like run every 17 minutes and such, or run based on state change of a particular resource ( a semaphore file is dropped, a new file exists, a field in a table has changed etc etc).

With this sort of mechanism you'd avoid all the permission issues you'll run into if you try to modify crontabs on the fly via

PHP

 .

Applause

nop_90

make a demon process
have demon process only allow communication with rpc calls
then make gui (does not matter if on server side or client side) that talks to it over the rpc.

dink

quote
How would you go about it?


Fire up skype and dial up Bombay?

vsloathe

ty ty perk for idea.

jammaster82

quote author=vsloathe link=topic=887.msg6272#msg6272 date=1208201506

Create a system whereby you (or several users!) had a control panel app, and this control panel let you add scheduled jobs. Say you could log in and say "do this task every 2 hours, and email me the results". How would you go about it?


sounds like rb4 to me... Applause
HOw about storing actual

php

  code in the database
fields and then executing it with the following:

http://www.

php

 

.net

 /eval

? just throwing out ideas, still havent the first clue of

php

 ...
programs writing programs always gave me a wank.gif


Perkiset's Place Home   Politics @ Perkiset's