From SRB



Spcommand - Proxy command operation. Request a remote SRB server to execute arbitrary commands on behalf of client.


Spcommand [-hc] [-H hostAddr | -d srbObj] command


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.


display command options
use client initiated connection to get around firewall issue on the client side. The default uses server initiated connection.
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.
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.