public class CmsRemoteShellClient extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_ADDITIONAL
Command parameter for passing an additional shell commands class name.
|
static java.lang.String |
PARAM_REGISTRY_PORT
Command parameter for controlling the port to use for the initial RMI lookup.
|
static java.lang.String |
PARAM_SCRIPT
Command parameter for passing a shell script file name.
|
Constructor and Description |
---|
CmsRemoteShellClient(java.lang.String[] args)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Main method, which starts the shell client.
|
java.util.Map<java.lang.String,java.lang.String> |
parseArgs(java.lang.String[] args)
Validates, parses and returns the command line arguments.
|
void |
run()
Main loop of the shell server client.
|
public static final java.lang.String PARAM_ADDITIONAL
public static final java.lang.String PARAM_REGISTRY_PORT
public static final java.lang.String PARAM_SCRIPT
public CmsRemoteShellClient(java.lang.String[] args) throws java.io.IOException
args
- the parametersjava.io.IOException
- if something goes wrongpublic static void main(java.lang.String[] args) throws java.lang.Exception
args
- the command line argumentsjava.lang.Exception
- if something goes wrongpublic java.util.Map<java.lang.String,java.lang.String> parseArgs(java.lang.String[] args)
args
- the command line argumentspublic void run() throws java.lang.Exception
Reads commands from either stdin or a file, executes them remotely and displays the results.
java.lang.Exception
- if something goes wrong