Environment variables
From CajunBot Wiki
Below is a listing of some common environmental variables used in cbsystem and what they are used for.
Contents |
[edit] CBBOTNAME
Used to control the mode of the software (in general), such as which configuration files to pick. Should be set to one of the following values:
- raginbot (aka CajunBot-II)
- cajunSim
[edit] CBCONF
Usually set as:
export CBCONF=$CBHOME/conf
This environmental variable points to the configuration directory within cbsystem.
See also Category:CBConf
[edit] CB_DATA_NET
This is used for where data will be logged to. If set, it usually has the form IPADDRESS:REMOTEPORT. For broadcasting is usually set to:
export CB_DATA_NET=224.0.0.42:5000
[edit] CBHOME
Usually set as:
export CBHOME=$HOME/cbsystem
This environmental variable points to the location of the top level cbsystem directory.
[edit] CB_LOG_HOST
This environmental variable is used by the control_logd program so that control signals are sent to the correct computer running data_logd.
It is usually set as:
127.0.0.1:9000
since control_logd is typically run on the same system as data_logd.
[edit] CBMSGPUBLISH
Used for publishing cbmesg to the local system, for example, when running simulation mode to get events.
See also Event watcher
[edit] CB_REMOTE_NET
This environmental variable is used for sending remote queue data over the network. If set, it usually has the form IPADDRESS:REMOTEPORT. For example:
export CB_REMOTE_NET=cbserver.cacs.louisiana.edu:6000
[edit] CB_SIMULATION
Set to y if the software is running in simulation mode, and unset or set to n otherwise. The main effect that this has is where sim_time data is taken from, either the host machine time or from the simulation generated time.
[edit] CBSUPPORT
Set to the location of support files for cbsystem: includes, libraries, and other files. Typically this is set to something like:
/local/cbsupport
[edit] CVSROOT
Used so that you don't have to specify the repository location everytime you issue a CVS command. Within the lab this is commonly set to:
/local/cajunbot/repository
If you are outside the lab, then prefix the server name and a colon (:) to the repository path.

