Is there a tool which can be instructed to pause specified processes if user uses a keyboard or mouse and to resume it in certain time after user has stopped interaction to the OS?
I would like to treat such way annoying mlocate update db, backuppc.
ps
09.2015 I guess these useful utils bothered me 'cause my Ubuntu was in fact a server, not a desktop.
Use the
ionice
utility to set a command's I/O priority to idle - this way it won't hog your hard disk when you are working, potentially slowing you down.The syntax is:
-c 3
sets I/O priority to idle. Seeman ionice
for more information.sudo
if the command itself requires sudo, e.g.updatedb
You can also use
nice
at the same time to set CPU priority to "idle" too, e.g.