HP-UX SNAplus2 R7 Administration Guide

Managing SNAplus2 from NetView
Using UCF
of the background command, but does not receive any subsequent output that is generated. Similarly, you can
use UCF to start a daemon process, but you cannot see any output generated by the process.
The UCF cannot be used with a command that requires further input from the user before it completes (for
example, a command such as
vi filename that starts an interactive process, or a command such as tail
-f filename that does not complete until it is stopped by the user).
Because all HP-UX commands run with the login ID and permissions of the congured UCF user, the valid
commands are limited by the access rights of the UCF users login. In particular, root or superuser commands are
not permitted. For more information, see Section 10.3.6,
UCF Security.
10.3.3 Example of a UCF Command
The following is an example of a UCF command as you would enter it from NetView:
runcmd sp=myspname, appl=unix, grep \temp \(ab\)*.c >\t\e\m\p.out
The command that would run on the HP-UX computer is:
grep Temp [ab]*.c >TEMP.out
10.3.4 Output from HP-UX System Commands
When a command is issued successfully, the following messages are displayed on the NetView screen:
= = = EXECUTING UNIX COMMAND = = =
(any output from the command, including error messages)
= = = UNIX COMMAND COMPLETED = = =
These messages may not appear on the NetView screen at the same time. The EXECUTING UNIX COMMAND
message appears as soon as the UCF daemon program receives the command and returns control to the NetView
operator. Any output from the command is sent to NetView as it is produced, and may appear as a series of separate
messages; the UNIX COMMAND COMPLETED message appears when the HP-UX command has nished and its
shell has ended.
If the output from the HP-UX command contains tab characters, SNAplus2 converts each tab to a space character
before sending the output to NetView. Otherwise the output is sent unchanged.
If you issue a command when a previous command is still in progress (that is, before the UNIX COMMAND
COMPLETED message is received), the following message is displayed:
= = = COMMAND QUEUED = = =
The second command is queued, and is executed when the previous command has completed.
10.3.5 Canceling a Command
UCF provides a method of canceling a command that is still in progress. This can be used to stop the current
command from executing, or to cancel an interactive command such as vi filename that cannot complete
without further input. It is equivalent to using an interrupt sequence such as
[Ctrl + C]
to stop a process running on
a terminal, or using the HP-UX kill command to stop the process.
In addition to canceling the command that is currently executing, SNAplus2 cancels any commands that are queued
after it.
The command syntax is the same as for the HP-UX command, with the string ux-cancel instead of the command
text. For example:
runcmd sp=myspname, appl=unix, ux-cancel
141