Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| util:jsexec [2020/11/13 19:54] – [Command Line] update to latest usage output digital man | util:jsexec [2022/03/06 15:19] (current) – [Module] Add Log Level section digital man | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| < | < | ||
| - | usage: jsexec [-opts] [path]module[.js] [args] | + | usage: jsexec [-opts] |
| + | or: jsexec [-opts] -r js-expression [args] | ||
| + | or: jsexec -v | ||
| available opts: | available opts: | ||
| + | -r< | ||
| -c< | -c< | ||
| -C do not change the current working directory (to CTRL dir) | -C do not change the current working directory (to CTRL dir) | ||
| -d run in background (daemonize) | -d run in background (daemonize) | ||
| - | -m< | + | -m< |
| - | -s< | + | |
| -t< | -t< | ||
| -y< | -y< | ||
| Line 35: | Line 37: | ||
| -f use non-buffered stream for console messages | -f use non-buffered stream for console messages | ||
| -a | -a | ||
| - | -A send all message | + | -A send all messages |
| - | -A< | + | -A< |
| -e< | -e< | ||
| -o< | -o< | ||
| Line 48: | Line 50: | ||
| -p wait for keypress (pause) on exit | -p wait for keypress (pause) on exit | ||
| -! wait for keypress (pause) on error | -! wait for keypress (pause) on error | ||
| - | -D debugs | + | -D load the script |
| </ | </ | ||
| Line 56: | Line 58: | ||
| **Note:** | **Note:** | ||
| When JSexec starts up, it changes its **current working directory** to the Synchronet '' | When JSexec starts up, it changes its **current working directory** to the Synchronet '' | ||
| + | |||
| + | ==== Log Level ==== | ||
| + | |||
| + | The log severity/ | ||
| ===== Additional Properties ===== | ===== Additional Properties ===== | ||
| Line 93: | Line 99: | ||
| JSexec includes an instance of a special User Interface class called '' | JSexec includes an instance of a special User Interface class called '' | ||
| - | FIXME | + | See the [[ref: |
| ===== shebang ===== | ===== shebang ===== | ||
| Line 104: | Line 110: | ||
| This allows JSexec scripts to be executed easily via [[: | This allows JSexec scripts to be executed easily via [[: | ||
| + | ===== Output ===== | ||
| + | |||
| + | JSexec supports multiple output methods and streams: | ||
| + | |||
| + | - **Error** (default stream: '' | ||
| + | - **Status** (default stream: '' | ||
| + | - **Console** (default stream: '' | ||
| + | |||
| + | ==== syslog ==== | ||
| + | |||
| + | When JSexec is executed on *nix operating systems with the '' | ||
| + | |||
| + | ==== Suppression ==== | ||
| + | * **Status** output is suppressed by default when JSexec is run without a controlling TTY. This behavior can be overridden with the '' | ||
| + | * **Status** output can be manually suppressed with the '' | ||
| + | * **Console** output can be suppressed with the '' | ||
| + | |||
| + | ==== Redirection ==== | ||
| + | * The output streams may be redirected to specific filenames via command-line options. | ||
| + | * **Error** output can be forked to both '' | ||
| ===== See Also ===== | ===== See Also ===== | ||
| * [[custom: | * [[custom: | ||