10.0;cpo (create_process_only) *DM*, revision 1.0, 88/03/17
cpo (create_process_only) create process without pads or windows
usage: cpo [-n name [-w] pathname [args ...]]
DESCRIPTION
The cpo command creates only a process, without associated pads or
windows. The three standard I/O streams are directed to /dev/null. If
this command appears in the node's DM boot startup script
`node_data/startup, the system assigns the new process the subject
identifier (SID) user.server.none.local_node, and the created process
continues to run regardless of whether anyone is logged in. This is
desirable for utilities like the prsvr (print_server) and netman, and
means that cpo is identical to cps in this context.
If cpo is issued in any other startup script or from the keyboard, the
SID of the new process is derived from whatever process invokes cpo, and
the created process terminates at logout.
ARGUMENTS
pathname (required)
Specify the file to be executed by the new process.
args... (optional)
Specify any arguments to be passed to the program
pathname. If any of these arguments contain explicit
blanks, enclose those arguments in quotation marks.
Default if omitted: no arguments passed
OPTIONS
-n name Assign process name name. If you omit this option, the
process is not named.
-w Invoke "wait" mode. If you specify this option, the DM
suspends its activities until the newly created process
terminates. As long as the process runs, the DM does not
respond to keyboard or other input. Use this option with
caution. If the newly created process does not terminate,
the DM appears to be hung. In addition, processes created
using -w cannot make any DM requests (via pad_$ requests
or DM commands) because the DM is suspended and will not
respond.
EXAMPLE
Run the alarm_server in a background process.
Command: cpo /sys/alarm/alarm_server -disk 98 -bell1
SEE ALSO
More information is available. Type the following at an Aegis shell
prompt:
help cp For details about creating processes with windows and pads
help cps For details about creating server processes
help sigp For details about stopping background processes