Content-type: text/html
Manpage of Spcommand
Spcommand
Section: User SRB Commands (1)
Updated: Jun 2004
Index
Return to Main Contents
NAME
Spcommand - Proxy command operation. Request a remote SRB server
to execute arbitrary commands on behalf of client.
SYNOPSIS
Spcommand
[-h] [-H
hostAddr |
-d
srbObj] command
DESCRIPTION
Spcommand
performs the remote execution of arbitrary commands (executables)
installed in a specific predefined directory on the remote host.
Currently, this predefined directory is hard-coded as "commands"
in the directory where the srbMaster and srbServer executables
are installed. For example, if the srbMaster is installed in the
/usr/local/srb/bin directory, the proxy commands should be
installed in the /usr/local/srb/bin/commands directory.
The input argument "command" specifies the proxy command to be
executed. Input arguments for the command is supported by appending
the argument list to the command just like any normal command.
The only difference is the command/argument string must be in
quotes. e.g.,
Spcommand "hello John"
Spcommand "hello -xyz John"
Proxy Op on SRB data example:
Spcommand -d <srbObj.tiff> "convert .jpg"
Basically, the SRB server, upon receiving the request, forks and
execs the input command and pipes the stdout and stderr back to
the client.
OPTIONS
- -h
-
display command options
- -d
-
srbObj
will discover which host the
srbObj
resides on, and will execute the proxy operation on that host. Also,
it will pass the
srbObj
as the first argument to that proxy operation. The -d and -H flags
can not be combined.
- -H
-
hostAddr
specifies the host address where the proxy command is to be
executed. If no address is specified, the default is the host
where the client is first connected to (e.g., the srbHost defined
in the .MdasEnv file). The -d and -H flags can not be combined.
SEE ALSO
Scat(1)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- OPTIONS
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 18:44:15 GMT, July 02, 2004