Quote:
Originally posted by frob23
Are some of the commands run at the same time?
Maybe you could make them into one script that cron calls.
I can't imagine needing more than 256 cron entries. I don't know if there is a limit... but there might be. I'd look for a work around.
What kind of stuff are you running that you need 256+ entries!!!?
|
I would love a workaround...
The computer is running a set of 10 temperature controllers over a network. Each temp controller has it's own theremal regime that simulates a diel cycle, so that setpoints have to be updated every 10 minutes. If you do the math thats 10 controlers * 6 updates per hour * 24 hours a day. Becasue each treatment is a little different there isn't any redundancy (this is a biology lab if you hadn't figured it out). Finally, to make it worse, some of the treatments have to fluctuate randomly (ie. today it will fluctutate from 27-31C, tomorrow it may fluctuate from 26-32C).
Here is what I did:
-The controllers are networked, so I wrote a script that takes the new temperature and an ip address as arguments and changes the setpoint.
-The cron script has a line for each change in temp for all controllers
-There are multiple versions of the cron script (representing possible "random" regimes) and each day at midnight a new random thermal regime is picked.
Everything works fine except the lower portions of the cron list are being ignored.
I really like using the cron becuase it's easy to work with. I could probably alter the existing script (perl) to do the math of figuring out the proper temps based on time and some other variables but I was hoping for an easier fix.
Thanks in advance