OnWorks favicon

cgexec - Online in the Cloud

Run cgexec in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command cgexec that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



cgexec - run the task in given control groups


cgexec [-h] [-g <controllers>:<path>] [--sticky] command [arguments]


The cgexec program executes the task command with arguments arguments in the given control

-g <controllers>:<path>
defines the control groups in which the task will be run. controllers is a list of
controllers and path is the relative path to control groups in the given
controllers list.

This flag can be used multiple times to define multiple pairs of lists of
controllers and relative paths. Instead of the list of all mounted controllers,
the wildcard b"*b" can be used.

If this option is not used, cgexec will automatically place the task in the right
cgroup based on /etc/cgrules.conf.

If /etc/cgrules.conf configuration file is used, there can be used template names.
Then the control group name contains a template in destination tag (see
cgrules.conf (5)) and if the cgroup does not exist in execution time, it is
created, based on /etc/cgconfig.conf specification. If the specifications are not
present the group is created with the default kernel values.

-h, --help
Display this help and exit.

If running the task command with this option, the daemon of service cgred
(cgrulesengd process) does not change both the task of the command and the child
tasks. Without this option, the daemon does not change the task of the command but
it changes the child tasks to the right cgroup based on /etc/cgrules.conf


cgexec -g *:test1 ls
runs command ls in control group test1 in all mounted controllers.

cgexec -g cpu,memory:test1 ls -l
runs command ls -l in control group test1 in controllers cpu and memory.

cgexec -g cpu,memory:test1 -g swap:test2 ls -l
runs command ls -l in control group test1 in controllers cpu and memory and control group
test2 in controller swap.


controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.

Use cgexec online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Eclipse Tomcat Plugin
    Eclipse Tomcat Plugin
    The Eclipse Tomcat Plugin provides
    simple integration of a tomcat servlet
    container for the development of java
    web applications. You can join us for
    Download Eclipse Tomcat Plugin
  • 2
    WebTorrent Desktop
    WebTorrent Desktop
    WebTorrent Desktop is for streaming
    torrents on Mac, Windows or Linux. It
    connects to both BitTorrent and
    WebTorrent peers. Now there's no
    need to wait for...
    Download WebTorrent Desktop
  • 3
    GenX is a scientific program to refine
    x-ray refelcetivity, neutron
    reflectivity and surface x-ray
    diffraction data using the differential
    evolution algorithm....
    Download GenX
  • 4
    PSPP is a program for statistical
    analysis of sampled data. It is a free
    replacement for the proprietary program
    SPSS. PSPP has both text-based and
    graphical us...
    Download pspp4windows
  • 5
    Git Extensions
    Git Extensions
    Git Extensions is a standalone UI tool
    for managing Git repositories. It also
    integrates with Windows Explorer and
    Microsoft Visual Studio
    (2015/2017/2019). Th...
    Download Git Extensions
  • 6
    eSpeak: speech synthesis
    eSpeak: speech synthesis
    Text to Speech engine for English and
    many other languages. Compact size with
    clear but artificial pronunciation.
    Available as a command-line program with
    many ...
    Download eSpeak: speech synthesis
  • More »

Linux commands