SCALL() Function - System Call BBj

 

For this topic's original documentation, see SCALL() Function - System Call.

BBj-Specific Information

Due to the client/server architecture of BBj, SCALL behaves differently in the BBj Thin Client mode. SCALL runs the system call on the server. If BBj Services is running as root, then the system call will run with the permissions of the user on the system. If BBj Services is not running as root, then the system call will execute with the user running BBj Services privileges.

SCALLing BBj specifically (in BBj 3.0 and higher)

An SCALL of BBj from Fat Client which does not contain a –TC or –FC option will contain an implicit –FC option. Similarly, a SCALL of BBj from Thin Client which does not contain a –TC or –FC option will contain an implicit –TC option.

An SCALLed Thin Client BBj Session will inherit the command line options starting with a '-' (ie : '-u') from the calling program. If the same command line option is specified in the arguments list of the SCALL string, that option is used.

If the SCALL command string contains BBj (case insensitive), BBj Services will arrange for a new interpreter session with the display on the user's machine. In many ways, this is similar to BBjAPI().getThinClient().clientExec("BBj TC RH<hostname>"). The preferred method, however would be SCALL("bbj") because it consumes less resources.

SCALLing BBj specifically (in BBj 4.0 and higher)

If SETOPTS bit 8, $08$ is set and the SCALL does not contain the string BBj (case insensitive), then the command will be executed on the client like a clientExec().

See Also

!ERROR 206 - SCALL BBj Argument Error

Running BBj Thin Client with Java Web Start

Running BBj Thin Client on the Web

Running from the Command Line

BBjThinClient Methods

BBjThinClient::clientExec

BBjAPI::newBBjSession

BBjAPI::getInterpreterServer

SETOPTS Verb



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.