I don't think that programs that should only run when idle check the CPU usage. They simply tell the OS to set their priority to the lowest level. You may want to look into that instead. | [reply] |
Searching CPAN for "nice" reveals Proc::NiceSleep, which appears to be along the lines of what you're looking for.
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] |