Running BBj from the Command Line
Description
When invoking BBj, command line options may be used.
|
| Parameter | Description | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
? |
Displays a usage statement. |
||||||||||||||
|
a<string> |
Associates the SysConsole settings
with a particular application so that the size, font, and position
of the SysConsole are saved when the session is closed and
recalled when the SysConsole is invoked again with a particular
application name. Can be used with the |
||||||||||||||
|
c<configuration file> |
Name of the configuration file on the remote machine to use. |
||||||||||||||
|
d |
Invokes BBj in debug mode. In this mode, when BBj drops to console, debugging takes place in the BBj WinConsole. |
||||||||||||||
|
n<string> |
Associates the SysConsole settings with a particular name, so that the size, font, and position of the SysConsole are saved when the session is closed and recalled when the SysConsole is invoked again with a particular name. Can be used with the |
||||||||||||||
|
q |
Suppresses the start-up message and splash window. |
||||||||||||||
|
t<terminal alias> |
The alias of a terminal specified in the configuration file. FID(0) will return this alias in the Thin Client program. |
||||||||||||||
|
u<user id> |
Specifies the user account to be used for Data Server and AppServer access. |
||||||||||||||
|
CP<classpath name> |
Specifies the session-specific classpath for the session. See Session-Specific Classpath (SSCP). |
||||||||||||||
|
FC |
Runs in Fat Client mode (non-Thin Client). This option has been obsolete since BBj 5.00. |
||||||||||||||
|
LF<look and feel> |
In BBj 5.00 and higher, this specifies the look and feel the BBj session uses. Valid options are:
|
||||||||||||||
|
LO |
Loads but does not run the specified program |
||||||||||||||
|
LP |
Specifies the Port Request Server's (PRS) port. The executable connects to the PRS to get the appropriate port to use to connect to the ThinClientProxyServer. By default, the PRS uses port 2008. The PRS's port may be changed using the Enterprise Manager. |
||||||||||||||
|
MDI<mdiMode> |
In 9.0 and higher, specifies the mdiMode that will be used if this command is being executed within a MDI environment. |
||||||||||||||
|
RH<host name> |
Specifies the machine name or IP
address of the server on which the ThinClientServer (TCS) or SecureThinClientServer
(STCS) if using the -SC argument)
resides. The executable connects to the ThinClientProxyServer
(TCPS) on the local machine (refer to |
||||||||||||||
|
RP<port number> |
Specifies the ThinClientServer's (TCS) port on the remote machine. The executable connects
to the ThinClientProxyServer (TCPS) on the local machine (see
|
||||||||||||||
|
SI<ImageFile> |
In BBj 25.03 and higher, this specifies a custom image that the BBj splash window displays. Note:The |
||||||||||||||
|
SC |
Specifies a secure connection between the Thin Client and the Thin Client Server. |
||||||||||||||
|
SMN<min seconds> |
In BBj 19.22 and higher, the splash minimum setting specifies the minimum number of seconds to show the BBj splash window. This setting will not apply if the The splash window will close if the BBj Interpreter terminates before the splash minimum time has been reached. |
||||||||||||||
|
SMX<max seconds> |
In BBj 19.22 and higher, the splash maximum setting specifies the maximum number of seconds to show the BBj splash window. This setting will not apply if the The splash window will stop displaying before the maximum splash time in the following cases:
|
||||||||||||||
|
keystore=<keystore> |
Specify a keystore to validate the SSL/TLS certificate from the secure Thin Client Server. This is only useful for the SC option if a custom keystore has been configured for the secure Thin Client Server. |
||||||||||||||
|
keypass=<keystore password> |
Specify the password for the keystore specified by the keystore option. |
||||||||||||||
|
message="<BBjSessionInfo message>" |
In BBj 23 and higher, this option specifies the fallback message for BBjSessionInfo::getMessage if STBL("!SESSIONINFO") is not set. |
||||||||||||||
|
TC |
Runs the interpreter in Thin Client mode |
||||||||||||||
|
WD<working directory> |
Specifies the server directory in which BBj will start |
||||||||||||||
|
TCPSpreload |
In BBj 17.00 and higher, the BBj.exe/bbjinit executable checks with the PortRequestServer to see if a ThinClientProxyServer for the user/host/display is running. If one is not running, the executable starts up the TCPS. In either case, whether it starts a TCPS or one is already running, the executable terminates without starting an interpreter. (Note: no license is checked out since no interpreter is started.) |
||||||||||||||
|
TCPSto<secs> |
In BBj 17.00 and higher, if the TCPS is started by this invocation of the executable, <secs> is passed to the TCPS as the "death wait" timeout. The "death wait" timeout is how long the TCPS stays up with no clients connected before terminating. This can be used to keep the TCPS up and running so it is not restarted each time a new BBj session is started. This overrides the property found in the BBj.properties file. This allows the timeout to be set differently for individual TCPSs. |
||||||||||||||
|
TCPShb<secs> |
In BBj 17.00 and higher, if the TCPS is started by this invocation of the executable, <secs> is passed to the TCPS as the "heartbeat" timeout. The "heartbeat" timeout is used by the TCPS to check the status of the ProxyManagerServer (PMS). If the PMS goes down, then the TCPS shuts down. Normally, the PMS is started as part of BBjServices, so when BBjServices is shutdown the PMS is also shutdown. |
||||||||||||||
|
<program> |
Name of the program on the remote machine to run. In BBj 25.00 and higher, programs and resources that are added to a JAR file in a classpath can be used by adding a "!!" prefix. Go to Session-Specific Classpath (SSCP) for more information. |
||||||||||||||
|
<arglist> |
The arguments to pass to the BBj program. |
Exiting BBj
To exit BBj console mode, enter "RELEASE"
or "BYE"
to return to the host operating system.
NOTE: Never exit BBj or any BBj application by turning off or rebooting your computer. Any files that are still open may be corrupted by this improper procedure.
Examples
|
In the final example below, the bbj
executable connects to the PortRequestServer (PRS) on the local machine
using port 3010. The executable gets the appropriate ThinClientProxyServer's
(TCPS) port from the PRS. Once connected to the TCPS on the local
machine, the TCPS connects to the ThinClientServer using port 4003 on
the remote host johnny. This example also shows how to pass arguments
in BBj, just as in PRO/5.
|
If the following invocation would start a ThinClientProxyServer (TCPS), it starts one with a death wait of 1 hour (3600 seconds) and a ProxyManagerServer (PMS) heartbeat of 5 minutes (300 seconds).
|
The TCPS started by this invocation would stay up one hour without any clients connected. Once all clients disconnect and the hour has passed without any new clients, the TCPS will shutdown.
Additionally, the TCPS pings the PMS every 5 minutes. If BBjServices shutdowns (which would shutdown the PMS) the TCPS shutdowns after the next heartbeat check (within 5 minutes).