ok I will try to keep this short, but basically, I use a batch file that is triggered (by nnCron) each morning at 3am. This batch file runs a DOS command that calculates sunrise and sunset times for that day, factoring in Daylight savings, etc etc. I use the output of this program to generate a "dynamic" crontab file that is used to control my pet lizard's habitat lighting and fans, etc.
It all works great, but to keep it simple I am using the "Classic" mode for that crontab file so it is easier to generate. The only thing that would make it perfect is if I could add some sort of switches or something to those classic mode tasks so they run "hidden".
here is an example of the crontab that gets generated:
- Code: Select all
# CP815.tab, generated on 2005-07-11
12 05 * * * * "C:\CP815\cp815ctrl.vbs" 8OFF
36 05 * * * * "C:\CP815\cp815ctrl.vbs" 5ON
06 06 * * * * "C:\CP815\cp815ctrl.vbs" 1ON
21 06 * * * * "C:\CP815\cp815ctrl.vbs" 3ON
41 19 * * * * "C:\CP815\cp815ctrl.vbs" 3OFF
11 20 * * * * "C:\CP815\cp815ctrl.vbs" 1OFF
35 20 * * * * "C:\CP815\cp815ctrl.vbs" 5OFF
08 21 * * * * "C:\CP815\cp815ctrl.vbs" 8ON
i hope that explains why I would want this feature...
if you want any more details of the batch file or the VBscripts, etc let me know