leocharre has asked for the wisdom of the Perl Monks concerning the following question:
I have a heavy resource hog maintenance type script.
I want it to run when the computer's resources have been free form more then x time.
I can think of some strange ways to go about this.
Maybe this could even be a sort of uh.. "downtime" cron- system where you enter commands to be executed not at certain moments- but when the resources have been free for more then x time.
Maybe halt when user comes back- Or some other service is being requested. sort of like a... screensaver??? Maybe a screensaver which runs commands?? That would do no good on a shell thou.. hmm.
Assign them priority etc.
Is anybody using something like this?
I'm on 2.6 linux kernel.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (OT) Run task only when resources have been free for x time
by Corion (Patriarch) on Nov 12, 2008 at 17:07 UTC | |
by Your Mother (Archbishop) on Nov 12, 2008 at 17:47 UTC | |
|
Re: (OT) Run task only when resources have been free for x time
by Illuminatus (Curate) on Nov 12, 2008 at 14:47 UTC | |
by leocharre (Priest) on Nov 12, 2008 at 15:03 UTC | |
by Illuminatus (Curate) on Nov 12, 2008 at 15:38 UTC |