Поэтому я хочу использовать cpulimit.
Эти команды работают как положено. :
Код: Выделить всё
7z a -t7z in_dir out_file
cpulimit -l 70 7z #gives the 7z help info
Код: Выделить всё
cpulimit -l 70 7z in_dir out_file
Код: Выделить всё
Usage: cpulimit TARGET [OPTIONS...] [-- PROGRAM]
TARGET must be exactly one of these:
-p, --pid=N pid of the process
-e, --exe=FILE name of the executable program file
The -e option only works when
cpulimit is run with admin rights.
-P, --path=PATH absolute path name of the
executable program file
Код: Выделить всё
cpulimit -l 70 -P /usr/bin/7z a -t7z in_dir out_file
Подробнее здесь: https://stackoverflow.com/questions/792 ... mmand-line
Мобильная версия