[BNM] Managing CRON from PHP
Jason Bailey
jasonslbailey at yahoo.co.uk
Wed Aug 29 17:48:29 BST 2007
> > Nick Wilsdon wrote:
> > > Is it possible to manage CRON tasks from PHP,
> i.e. remove/add/stop
Hello
Not sure this is a good idea but I'll suggest it and
it may help. Security wise this could be very scary!
Could you create a cronjob to look at a php page e.g.
using the unix lynx browser. Then edit the php page
appropriately e.g. changing the cronjob.
Actually this might work better if your php page is
using data (the variables for the cron) from a
database. You could add/edit stuff.
I think you'd not be able to alter the time of the
cronjob but you may be able to start (add/insert)/
stop (delete/hide). The database option may provide
security where providing a www user writeable file may
not.
Not sure if that helps but Ive done something similar
in the past using 3 cronjobs i.e. am, midday, evening
and having code in php to determine whether or not it
should run at a particular time. i.e. 3 cronjobs all
running mycronjobpage.php which fire off various
things; like emailing reminders.
I may be way off the mark with this!
Jason
___________________________________________________________
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html
More information about the BNMlist
mailing list. Powered by Wessex Networks