All pastes #144581 Raw Edit

Unnamed

public text v1 · immutable
#144581 ·published 2006-08-22 16:11 UTC
rendered paste body
deado@shell ~/ruby $ ./bunhax.rb
Usage: bunhax [options]

-d, --delete CPUSET             Delete cpuset
-f, --frontend                  Run interactive frontend
-h, --help                      Display this help msg
-l, --list-cpusets              List current cpusets
-n, --new CPUSET                Create new cpuset
-m, --move PID,CPUSET           Move PID to CPUSET
-p, --print-tasks CPUSET        List tasks for CPUSET
-v, --version                   Print version info

Examples:
bunhax --frontend               opens the frontend
bunhax -d my_cpuset             delete cpuset 'user_apps'
bunhax -l                       print list of current cpusets
bunhax --new new_set            add cpuset 'user_apps'
bunhax --move 12345,my_cpuset   attach PID '12345' to cpuset 'my_cpuset'
bunhax -p=all                   list and sort tasks for all cpusets

Report bugs to Jeremy Polley <imdeado@gmail.com>
deado@shell ~/ruby $ ./bunhax.rb -f
$ h
 ~ bunhax - cpuset manager ~
  d - delete cpuset
  h - display help menu
  l - display available cpusets
  m - move PID to cpuset
  n - create new cpuset
  p - display cpuset tasks
  q - quit
  v - display version information
  z - execute 'screen -d' (only works if running in screen)
$ v
 ~ bunhax - cpuset manager ~
   Version: 0.0.7
   Updated: 22 August 2006 (03:28 CST)
   Author: Jeremy "deado" Polley
   Email: imdeado@gmail.com
   AIM: d34d0
   MSN: imdeado@gmail.com
   IRC: irc.freenode.net #gentoo.et
$ q
deado@shell ~/ruby $