EnglishFrenchSpanish

Ad


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

PROGRAM:

NAME


cgexec - run the task in given control groups

SYNOPSIS


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

DESCRIPTION


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

-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.

--sticky
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
automatically.

EXAMPLES


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.

ENVIRONMENT VARIABLES


CGROUP_LOGLEVEL
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
    VASSAL Engine
    VASSAL Engine
    VASSAL is a game engine for creating
    electronic versions of traditional board
    and card games. It provides support for
    game piece rendering and interaction,
    and...
    Download VASSAL Engine
  • 2
    OpenPDF - Fork of iText
    OpenPDF - Fork of iText
    OpenPDF is a Java library for creating
    and editing PDF files with a LGPL and
    MPL open source license. OpenPDF is the
    LGPL/MPL open source successor of iText,
    a...
    Download OpenPDF - Fork of iText
  • 3
    SAGA GIS
    SAGA GIS
    SAGA - System for Automated
    Geoscientific Analyses - is a Geographic
    Information System (GIS) software with
    immense capabilities for geodata
    processing and ana...
    Download SAGA GIS
  • 4
    Toolbox for Java/JTOpen
    Toolbox for Java/JTOpen
    The IBM Toolbox for Java / JTOpen is a
    library of Java classes supporting the
    client/server and internet programming
    models to a system running OS/400,
    i5/OS, o...
    Download Toolbox for Java/JTOpen
  • 5
    D3.js
    D3.js
    D3.js (or D3 for Data-Driven Documents)
    is a JavaScript library that allows you
    to produce dynamic, interactive data
    visualizations in web browsers. With D3
    you...
    Download D3.js
  • 6
    Shadowsocks
    Shadowsocks
    A fast tunnel proxy that helps you
    bypass firewalls This is an application
    that can also be fetched from
    https://sourceforge.net/projects/shadowsocksgui/.
    It ha...
    Download Shadowsocks
  • More »

Linux commands

Ad