Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Interoperating Between User Environments
Open System Services Porting Guide520573-006
4-11
Managing Processes From OSS
OSS shell commands is contained in the Open System Services Users Guide and the
online reference pages.
Managing Processes From OSS
To obtain the status of OSS processes, use the OSS ps utility. This utility is equivalent
to the Guardian STATUS command.
Examples
To list all your OSS processes, use:
ps
To list all OSS processes except kernel processes, use:
ps -e
The -u parameter limits the output of ps to specific users. In the following example,
the -u parameter lists processes for the users admin, mark, and os.helen. The -l
parameter requests detailed information or a long listing of all of the processes found:
ps -l -u "admin mark os.helen"
To stop a process, use the OSS kill utility, which is equivalent to the Guardian STOP
command. In the following example, the command to terminate process 10206621 is:
kill 10206621
This kill utility is actually a general mechanism; it sends the default signal
(SIGTERM). Any signal can be sent to a process using this general form of the kill
utility. The process might “catch” the signal and perform some other function, it might
ignore the signal, or it might terminate the specified process.
The kill utility requires either a signal name or number and the OSS process ID
(PID). The signal is specified with the -s parameter.
In the following example, the process 10307524 is sent the SIGKILL signal, which
automatically terminates the process:
kill -s SIGKILL 10307524
SIGKILL is a special signal that cannot be ignored or caught.
See Managing Guardian Processes From the OSS Shell on page 4-23 for information
on using the kill utility to terminate a Guardian process.
Managing Files From OSS
In the OSS environment, several utilities provide file operations. In the Guardian
environment, the File Utility Program (FUP) is used to provide this function. The