So cron or at can schedule our commands to run at the exact time we need them to, but can we schedule commands to run when systems are inactive?
Something like:
echo "some_commands" | when 'cpu < 15%'
|
So Something like:
|
|||||||||||||||
|
|
hmmm... I don't think so... but what you could do is cron a script to run like every 5 minutes and check the load average to see if it's acceptably low. I wouldn't check the current because you could get the cpu in between 2 really high peaks. This is just thoughts on what I'd do to accomplish this, but there might be a better way. |
|||||
|
|
Fcron has a lot of additional features over common cronds. For example:
(quote from the Homepage) Thus, you could use fcron to setup what you want. |
|||
|
|
|
On many systems the at daemon is configured such that the |
|||
|
|
A friend of mine posted about this problem some days ago. He talks about this tool Dmon. I did not test it, but it sounds great. |
|||
|
|