Joined: Oct. 2004
||Posted: Mar. 21 2006,03:41
not sure how a bash script could do it.... what would you do? read a text file with Time and Task information? Maybe with flua, don't really know what functions flua has available. I guess DSL does come with a 'Calendar' utility, maybe it could be modified ( a lot ) or used as a starting point. What's that SQLite book app written in?
I never thought much about scheduled tasks but I can see how it would be nice to have it available. Actually I thought DSL had something like 'cron' or 'at' in it already.
What's available as a UCI ? I think there is Python and Tcl. They're not native to DSL but a UCI is pretty light on resources and Python and Tcl are robust languages.
What would it really need to do?
1. Read a list of dates and tasks
2. Determine if any tasks with a date/time less then the current date/time have not yet been executed.
3. Execute the task
4. mark it as done, so you have an audit trail.
5. go back to #2
6. if no tasks remain go to sleep for a while.
If you want to get fancy:
- add a 4.5 step to create the 'next task' in a recurring tasks ( the every day at 3 am type of tasks ).
- make the list of times and tasks a sqlite table
- create a webpage or some gui interface to enter and view the task list
Sorry, not much help, but the more I think about this, the more I think it could be useful. Of course maybe it's as easy as pie to install cron and this would just be an exercise in twidling with electrons.
Good luck. Have you done any internet searches looking for scripts?
======== Note =========
The DSL Forum Search default is 'OR'
If you search for "cat dog" you will get all "cat" posts and all "dog" posts.
If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog"
Add '*' for wildcards, " cat* and dog* "