jobmng

Langue: en

Version: April 2005 (fedora - 04/07/09)

Section: 1 (Commandes utilisateur)

NAME

jobmng - Manage group of processes

SYNOPSIS

jobmng [ACTIONS] [OPTIONS] [-h]

DESCRIPTION

jobmng allows the manipulation of groups of processes called jobs. You can add a process in a given existing job or create a new job. You can remove a process from a given job. You can also act as a server to recover existing information about jobs. Finally, this command line program allows you to stop the job daemon.

ACTIONS

-a
Add a process to a given group of processes called job. If the job ID is equal to 0 or not specified, a new job is created. The process PID and and job ID are set with options (see OPTIONS).
-r
Remove a process from a given job. The process PID and job ID are set with options (see OPTIONS).
-d
Dump information about jobs on the standard ouput.
-s
Stop the job daemon.

OPTIONS

-p
Set the PID of a process
-j
Set the ID of a job. It can be equal to 0 when we want to add a process in a new job.
-e
Execute the command in a given job

EXAMPLES

Add a command in a job and execute it
jobmng -a -e ls -lR /
Add a command in an existing job and execute it
jobmng -a -e gcc /tmp/file.c -j 1
Add process 1234 in a new job
jobmng -a -p 1234
Remove process 1234 from job ID 2
jobmng -r -p 1234 -j 2
Get information about jobs in a file and redirect the output in a given file
jobmng -d > job_info.dat
Stop the job daemon
jobmng -s

AUTHOR

Originally written by Guillaume Thouvenin
<guillaume.thouvenin@bull.net>