'\" t
.\"     Title: PROCESS
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL-NS Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 08/28/2023
.\"    Manual: BRL-CAD MGED Commands
.\"    Source: BRL-CAD
.\"  Language: English
.\"
.TH "PROCESS" "nged" "08/28/2023" "BRL\-CAD" "BRL\-CAD MGED Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
process \- List and manage currently running subprocesses\&.
.SH "SYNOPSIS"
.HP \w'\fBprocess\fR\ 'u
\fBprocess\fR
.HP \w'\fBprocess\ list\fR\ 'u
\fBprocess list\fR
.HP \w'\fBprocess\ pabort\fR\ 'u
\fBprocess pabort\fR {pid}
.HP \w'\fBprocess\ gabort\fR\ 'u
\fBprocess gabort\fR {glob}
.SH "DESCRIPTION"
.PP
The
\fBprocess\fR
offers a program\-agnostic means of managing subprocesses launched by a GED application\&. The most common instances of this phenomena are long running
\fBrt\fR
commands on large models, but there are other commands such as
\fBrtcheck\fR
that also operate in this asynchronous manner\&. If one of these processes is running too long or consuming too many resources,
\fBprocess\fR
allows users to identify and stop these processes from the GED command line\&.
.SH "EXAMPLES"
.PP
The below examples walk through a sample
\fBprocess\fR
workflow:
.PP
\fBExample\ \&1.\ \&Process Help\fR
.PP

mged>\fBprocess\fR
.sp
.if n \{\
.RS 4
.\}
.nf
Usage: process [subcommand]

Subcommands:

  list          \- List all currently running subprocesses\&.
  pabort <pid>  \- Abort the specified subprocess\&.

  gabort <glob> \- Abort all subprocesses whose command matches the glob expression\&.
      
.fi
.if n \{\
.RE
.\}
.sp

.PP
\fBExample\ \&2.\ \&List Currently Running Processes\fR
.PP

mged>\fBprocess list\fR
.sp
.if n \{\
.RS 4
.\}
.nf
    PID CMD
5524692 rt \-M \-u model /home/user/test\&.g
6515118 rtcheck \-M /home/user/test\&.g obj
      
.fi
.if n \{\
.RE
.\}
.sp

.PP
\fBExample\ \&3.\ \&Eliminate a Running Subprocess\fR
.PP

mged>\fBprocess pabort 6515118\fR
.PP
Using the reported PID from
\fBprocess list\fR, the above line terminates the
\fBrtcheck\fR
subprocess\&.
.SH "AUTHOR"
.PP
BRL\-CAD Team
.SH "BUG REPORTS"
.PP
Reports of bugs or problems should be submitted via electronic mail to
devs@brlcad\&.org
