Updated: 10/19/2021, 9:29:48 PM
Created: 10/19/2021, 9:29:48 PM
Last Updated By: Kevin Munoz
Read Time: 1 minute(s)
Tags: environment variables ports
This defines current port number and is useful when a particular user wishes to keep the same port number whenever they log on. On UNIX it takes a sensible default, but this default may change if the UNIX configuration is changed. On Windows, port numbers are allocated sequentially from zero.
Decimal port number Combinations of lists and ranges of port numbers can be specified.
Must be set prior to the execution of the initial jBASE program (e.g. the jShell).
On UNIX, this is typically done in the .profile as:
On Windows, it is typically assigned in the Environment Variables panel of the System Properties.
If JBCPORTNO is explicitly set then jBASE will assign the lowest available port number from the list or range specified. If all port numbers specified by JBCPORTNO are already in use then the user will be denied access and the user will be rewarded with the following error message:
No ports free in the specified range . . .
Under normal circumstances, a single port number will suffice. However, if the user is invoking other programs that start a new jBASE process (e.g. BASIC or EXECUTE @IM:'k') then it would be necessary to assign at least 2 port numbers for that user so that the secondary process can obtain a port number.
Go Back to Environment Variables