HP-UX Reference (11i v2 07/12) - 1M System Administration Commands N-Z (vol 4)

s
strchg(1M) strchg(1M)
DIAGNOSTICS
strchg returns zero on success. It prints an error message and returns non-zero status for various error
conditions, including usage error, bad module name, too many modules to push, failure of an
ioctl on the
stream, or failure to open file from the
-f option.
strconf returns zero on success (for the -m
or -t option, "success" means the named or topmost module
is present). It returns a non-zero status if invoked with the
-m or -t option and the module is not
present. It prints an error message and returns non-zero status for various error conditions, including
usage error or failure of an
ioctl
on the stream.
EXAMPLES
The following command pushes the module
ldterm on the stream associated with the user’s standard
input:
strchg -h ldterm
The following command pops the topmost module from the stream associated with
/dev/term/24 . The
user must be the owner of this device or be superuser.
strchg -p < /dev/term/24
If the file, fileconf, contains the following:
compat
ldterm
ptem
then the command
strchg -f fileconf
will configure the user’s standard input stream so that the module
ptem is pushed over the driver, followed
by
ldterm and compat closest to the stream head.
The strconf command with no arguments lists the modules and topmost driver on the stream. For a
stream that only has the module ldterm pushed above the ports driver, it would produce the following
output:
ldterm
ports
The following command asks if ldterm is on the stream:
strconf -m ldterm
and produces the following output while returning an exit status of 0:
yes
FILES
/usr/lib/nls/msg/C/strchg.cat
NLS catalogs
/usr/lib/nls/msg/C/strconf.cat
NLS catalogs
SEE ALSO
streamio(7).
HP-UX 11i Version 2: December 2007 Update 2 Hewlett-Packard Company 371