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 Linux kill command to stop the process.

In addition to canceling the command that is currently executing, CS Linux cancels any commands that are queued after it.

The command syntax is the same as for the Linux command, with the string ux-cancel instead of the command text. For example:

runcmd sp=myspname, appl=unix, ux-cancel

For each outstanding command (the one currently executing and any queued commands), the following message is displayed:

= = = UNIX COMMAND CANCELLED = = =

This message indicates that the Linux shell in which the command was running has been stopped. Further Linux commands can be issued as necessary.

If a command starts a daemon process on the Linux computer, this process may not be stopped by ux-cancel. You may need to use the Linux kill command (either on a terminal or by using UCF) to stop such a process explicitly.

If no UCF command is running when ux-cancel is used, UCF displays the following message:

NO OUTSTANDING COMMANDS

In this case, the ux-cancel command is ignored. No action is necessary. This message can be displayed when the ux-cancel command is issued after the previous command finishes but before the UNIX COMMAND COMPLETED message is received.