OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

8.7 Samples to be used to dispatch multi OpenTP1 command

When a command is executed at a multi OpenTP1 node from another node using rsh or something similar, it cannot be determined which OpenTP1 system the command is executed in. In this case, a command must be executed by specifying the node name. A sample includes a command that executes a certain command specifying a node name (shell file). This command named delvcmd is stored in the tools/ directory of Base sample.

Organization of this section
(1) How to use delvcmd command
(2) Limitation on the value to be specified as command argument
(3) Commands which cannot be executed with the delvcmd command

(1) How to use delvcmd command

The delvcmd command is executed with the following syntax:

delvcmd -w node-name [, node-name] ... command-name

The node-name fields specify the identifiers of nodes within the same machine.

More than one node name can be specified. When multiple node names are specified, use a comma (,) to separate them.

Command input examples are given below. Each example assumes that the prcls command is executed at nodes nd01 and nd02. Either of the following syntaxes may be used.

% delvcmd "prcls" -w nd01, nd02 <CR>
% delvcmd -w nd01, nd02 "prcls" <CR>

Before using this command, specify in it the full pathnames of $DCDIR, $DCCONFPATH, $SHLIB_PATH, or $PATH for each node.

Place either an apostrophe (') or quotation mark (") before and after any command to be specified as an argument. The following restrictions apply:

(2) Limitation on the value to be specified as command argument

An asterisk (*) cannot be used for the arguments of the delvcmd command. If an asterisk is used to specify multiple command arguments collectively, the delvcmd command may not execute normally.

Piping and redirecting are not allowed for a command name to be specified in the delvcmd command. However, the execution results of the delvcmd command can be piped or redirected. A command input example is given below.

% delvcmd "prcls" -w nd01, nd02 > file <CR>

(3) Commands which cannot be executed with the delvcmd command

Some commands cannot be executed with the delvcmd command due to the access permission set in the OpenTP1 system. In this case, the name of the user who executes the delvcmd command must be the same as that of the OpenTP1 administrator for the target node.