Open System Services Management and Operations Guide (G06.25+, H06.03+)
Operating the OSS Environment
Open System Services Management and Operations Guide—527191-002
2-34
Managing OSS Interprocess Communication
Facilities
3. Change the PATH environment variable in /etc/profile to something similar to
the following:
export PATH=/usr/local/script:/bin:/bin/unsupported:
/usr/ucb:/usr/bin
4. Post a broadcast message to users.
Managing OSS Interprocess Communication
Facilities
The OSS interprocess communication (IPC) facilities require little management.
However, applications can fail and leave no-longer-used message queues, semaphore
IDs, or shared memory segment IDs in the system. You can detect such wasted
resources by regularly monitoring IPC facility use and correcting the situation when
necessary.
OSS IPC facilities such as message queues, semaphores, and shared memory
segments can be monitored and controlled with OSS shell commands. The ipcs
command displays information for those IPC mechanisms. The ipcrm command
removes facilities associated with failed processes. See the ipcs(1) and ipcrm(1)
reference pages either online or in the Open System Services Shell and Utilities
Reference Manual.
OSS named pipes (FIFOs) can be monitored using the OSS shell ls -l -F
command on the directory containing the FIFO. The output from the command lists
FIFOs with a p as the first character in the mode field.
OSS AF_UNIX (local) sockets have filenames and can also be watched using the
ls -l command. The output from the command lists AF_UNIX sockets with an s as
the first character in the mode field. OSS AF_UNIX sockets are administered by
configuring, starting, and stopping their servers. See Section 4, Managing Servers, for
information about OSS AF_UNIX sockets local servers.
OSS IPC facilities such as unnamed pipes and OSS AF_INET or AF_INET6 sockets
are more difficult to monitor.
The inetd command provides OSS sockets with specific services, sometimes by
starting the corresponding server. See the inetd(8) reference page either online or
in the Open System Services Shell and Utilities Reference Manual. More information
about the inetd command can be found in Starting a Network Services Server on
page 4-35.
Scheduling Periodic Tasks
You can schedule programs or multiple-task OSS shell scripts to run in the OSS
environment at predetermined times and intervals. The OSS environment offers two
ways to do this: the cron utility with related OSS shell commands, and the NetBatch