ultrus Posted June 7, 2007 Share Posted June 7, 2007 Hello, I'm using php in combination with macros to keep things going on my personal computer like checking email, launching some stuff on startup, getting the latest blogs, sending me email notifications, etc. Currently this is all triggered manually, and I want to schedule tasks, and track the completed ones. The challenge is, some of these macros will be scheduled at the same time, and I want things to be handled one at a time until caught up on tasks, then wait until its time to go at it again. Technical stuff aside, what are your thoughts on how to keep track of a waiting line of scripts, knowing when they are completed, and be aware of the next time the task is scheduled (scheduled weekly, daily, hourly, minutes, once only, etc.), without my interference? Example thoughts: One script is scheduled to run every day at 1:00pm. Another script is scheduled to run every hour. Another script is scheduled to run every 15 minutes. Each scripts takes between 1-5 minutes to run. At 1:00pm, all three scripts are scheduled to run at the same time, and are handled one at a time until complete System knows to wait until 1:15pm to handle the next scheduled script, or add it to the cue when that time hits if scripts are still active How is this possible? How does it keep track and reset itself for the next time? Thanks in advance for the feedback Note: I am aware of crons, but need a more dynamic solution because scripts take a while to run, and can't run at the same time. Quote Link to comment Share on other sites More sharing options...
ultrus Posted June 7, 2007 Author Share Posted June 7, 2007 I got it figured out. I just needed caffeine! Basically, there's a script that adds tasks to a cue whenever it is time, that also checks when the last time that task was activated. The cue takes care of itself. Alright. Time to wake up. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.