wlshell can be started with any of the following options:
-b | Start without the credits banner |
-d [logconfigfile] | Enable debug to wlshell.log file. As an option, logging can be configured with a supplied log config file in log4j format. See logging for details. |
-daemon | Start wlshell daemon. See the TELNET section for more information. |
-f <scriptfile> | Read and execute the commands in the specified script file. |
-g | Start a graphical console. |
-h | Print help message. |
-v variable=value |
Pass a variable from the command line to wlshell session.
It tries to convert the value to the corresponding java value. examples: -v server=192.168.1.10 -v port=7001 -v servers=[s1,s2,s3] -v windir=%windir% #sh unix script server=myserver.acme.com wlsh.sh -v server=$server The variables set here can be overwriten by variables in the .wlshrc and -f scriptfile. |
-version | Print product version and exit. |
If the directory where wlshell is started contains a file named ".wlshrc" then the commands in that file will be executed first.
.wlshrc stands for "wlshell run command".
This is the order in which wlshell starts:
This ordering implies that if a variable is set in a command line argument, the value of that variable can be used or overwritten in file .wlshrc or in the script file passed as an argument with the "-f" flag.
The graphical console is a feature under development. It is based on the JConsole util class from BeanShell.