Both sides previous revisionPrevious revision | Next revisionBoth sides next revision |
config:env [2013/09/26 15:35] – [SBBSNODE] digital man | config:env [2017/12/04 20:43] – Added new 'automatic' section to detail the env variables set by sbbs digital man |
---|
setenv SBBSCTRL /sbbs/ctrl | setenv SBBSCTRL /sbbs/ctrl |
(replace ''/sbbs/ctrl'' with the full path to your ''[[dir:ctrl]]'' directory) | (replace ''/sbbs/ctrl'' with the full path to your ''[[dir:ctrl]]'' directory) |
| |
| |
| ===== Automatic ===== |
| |
| When the Synchronet [[server:Terminal]] Server executes an external program (e.g. door game, OS command shell, timed events, file transfer protocol drivers, etc.), it will set the following environment variables for the child process to utilize: |
| |
| ^ Variable Name ^ Description ^ Example ^ |
| | ''DSZLOG'' | Path to the current protocol driver log file | ''c:\sbbs\node1\protocol.log'' | |
| | ''SBBSNODE'' | Path to the current node directory | ''c:\sbbs\node1\'' | |
| | ''SBBSCTRL'' | Path to the Synchronet [[dir:ctrl]] directory | ''c:\sbbs\ctrl\'' | |
| | ''SBBSDATA'' | Path to the Synchronet [[dir:data]] directory | ''c:\sbbs\data\'' | |
| | ''SBBSEXEC'' | Path to the Synchronet [[dir:exec]] directory | ''c:\sbbs\exec\'' | |
| | ''SBBSNNUM'' | Current node number | ''1'' | |
| | ''PCBNODE'' | Current node number (only for DOS programs) | ''1'' | |
| | ''DAY'' | Current day of the month (01-31 ) | ''01'' | |
| | ''WEEKDAY'' | Current day of the week abbreviation | ''Mon''| |
| | ''MONTHNAME'' | Current month name abbreviation | ''Jan''| |
| | ''MONTH'' | Current month number (01-12) | ''01'' | |
| | ''YEAR'' | Current year | ''2017'' | |
| |
| These variables can be used by shell scripts, batch files and programs, as needed. |
| |
| |