====== exec directory ======

The Synchronet ''exec'' directory contains executable and interpreted files:

  * Binary executables (e.g. ''.exe'')
  * Baja-interpretted (''.bin'') with source (''.src'', ''.inc'')
  * JavaScript (''.js'')

The stock/default contents of the ''exec'' directory can be browsed online [[https://gitlab.synchro.net/sbbs/sbbs/-/tree/master/exec|here]].

A daily snapshot archive of the stock/default contents of the ''exec'' directory can downloaded in [[ftp://ftp.synchro.net/sbbsexec.zip|zip]] (for Windows) or [[ftp://ftp.synchro.net/sbbsexec.tgz|tgz]] (for *nix).

Files in the ''exec'' directory are not normally modified by the sysop. If you have locally modified files from ''exec'' (or ''exec/load''), it is recommended to move them to the ''[[dir:mods]]'' directory to protect them from accidental over-write during upgrade or update.
===== Sub-directories =====

==== load ====
The ''[[dir:exec]]/load'' directory (''[[dir:load]]'') and ''[[dir:mods]]/load'' directory contain JavaScript library (''.js'') files that are ''load()''ed by other JavaScript modules.

More than one directory can be searched for JavaScript load libraries. The set of load directories/subdirectories is configured with the ''JavaScriptLoadPath'' value in the ''[[dir:ctrl]]''/''[[config:sbbs.ini]]'' file.

==== tone ====

The ''[[dir:exec]]/tone'' directory contains 'tone' (''.ton'') files which are interpretted (e.g. by the [[util:tone]] utility or the [[module:playtone]] module) to generate simple monophonic melodies (e.g. for sysop paging).

===== SBBSEXEC Environment Variable =====

The ''SBBSEXEC'' environment variable may be used to point (contain the path) to this directory, but is not normally required.

See [[config:env#SBBSEXEC]] for more details.

===== See Also =====

  * [[dir:|Directory structure]]
  * [[dir:mods]] directory
  * [[https://gitlab.synchro.net/sbbs/sbbs/-/tree/master/exec|exec directory in Git]]
