1. 12 Apr, 2020 1 commit
  2. 08 Apr, 2020 1 commit
    • rswindell's avatar
      Added support for exec/jsexec.ini file which can over-ride default values · 77a8d33c
      rswindell authored
      globally and per-module. Command-line options still take precedence.
      For jsdoor builds, jsdoor.ini is supported in whatever directory jsdoor is run
      from.
      Changed the default log level from Debug to Informational.
      (If you need the old default, set LogLevel=debug in your ctrl/jsexec.ini file).
      77a8d33c
  3. 03 Jan, 2020 1 commit
    • rswindell's avatar
      Add/use a new get_ctrl_dir() function to query the SBBSCTRL env var and if · b236be71
      rswindell authored
      not set (or blank), use the default ("/sbbs/ctrl") and print a warning to
      stderr. This resolves a FAQ for sysops that struggle with setting the SBBSCTRL
      env var, but do have sbbs install in /sbbs or a symlink from /sbbs to where
      sbbs is actually installed.
      
      Note: this function is different than the one previously defined in getctrl.c
      but never used. If/when we ever really need to support PREFIX, then perhaps
      we'll use that one (which copies a string to a buffer).
      b236be71
  4. 02 Sep, 2019 1 commit
  5. 29 Aug, 2019 1 commit
    • deuce's avatar
      We do *not* want JSOPTION_VAROBJFIX set since it causes variables to be · a563651f
      deuce authored
      created in the global scope when when a scope is passed to load(), require()
      or js.exec().
      
      While having 'var x = 0;' and 'x = 0;' put x in different scopes is bad, we
      actually want them all in the passed scope, not the global scope... and that's
      not an option.
      
      It looks like js.exec() will actually need to set scope as the global object
      and add a second global object to the original scope.
      a563651f
  6. 27 Aug, 2019 2 commits
  7. 08 Aug, 2019 1 commit
  8. 06 Aug, 2019 1 commit
  9. 29 May, 2019 1 commit
  10. 20 Jan, 2019 2 commits
  11. 12 Dec, 2018 1 commit
  12. 22 Oct, 2018 1 commit
  13. 06 Apr, 2018 1 commit
  14. 09 Mar, 2018 1 commit
  15. 08 Mar, 2018 1 commit
  16. 20 Feb, 2018 2 commits
  17. 14 Feb, 2018 1 commit
  18. 12 Jan, 2018 1 commit
    • rswindell's avatar
      Added command-line option -C (capital 'C'): · 2596f5e5
      rswindell authored
      - This option instruts JSexec to *not* change the current working directory to
        the control (CTRL) directory
      - This is useful when using jsexec to deal with files and passing relative
        paths or wildcards on the command-line
      - Warning: scripts executed with this option may behave differently than the
        same script executed from SBBS where the current working directory is always
        the CTRL directory.
      2596f5e5
  19. 06 Jan, 2018 1 commit
  20. 30 Dec, 2017 3 commits
  21. 28 Nov, 2017 1 commit
  22. 27 Nov, 2017 1 commit
  23. 13 Nov, 2017 2 commits
  24. 15 Nov, 2016 1 commit
  25. 21 Jan, 2016 1 commit
  26. 05 Dec, 2015 1 commit
    • deuce's avatar
      Send all log messages to statfp (defaults to stderr) instead of confp (defaults · 00b534ac
      deuce authored
      to stdout).
      
      Previous behaviour was:
      1) By default, send error messages to errfp (stderr), and other log messages to
         confp (stdout).
      2) If -e and one of -o or -q are specified, also send a copy of error messages
         to statfp (defaults to stderr, changed to /dev/null by -n)
      3) If -e is specified, also send a copy of error messages to confp (defaults to stdout)
      
      If -e, -o, were both specified, this resulted in an error log entry going into the file
      specified by -e, the file specified by -o, and confp (stdout by default).
      
      New behaviour:
      1) By default, send error messages to errfp (stderr), and other log messages to statfp
         (stderr).
      2) If -e is specified, send error messages to the specified file and statfp (stderr).
      3) Always send status messages to statfp (stderr).
      
      Set up some more stuff for jsdoor...
      
      Call gethostname() since there is no "SCFG value" for it.
      
      Send "status messages" (log messages that aren't errors, and the banner) to
      /dev/null by default (ie: force the "-n" argument)
      
      Send "error messages" (log messages that are error according to log level) to
      "error.log" by default (ie: force the "-eerror.log" argument)
      00b534ac
  27. 25 Nov, 2015 2 commits
  28. 16 Nov, 2015 1 commit
  29. 14 Nov, 2015 1 commit
  30. 10 Nov, 2015 2 commits
  31. 29 Oct, 2015 1 commit
  32. 28 Oct, 2015 1 commit