Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
util:jsexec [2018/01/10 16:37] – [Module] Make note about relative paths and cwd. 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< |
- | -m< | + | |
- | -s< | + | -C do not change the current working directory |
- | -S< | + | -d run in background |
- | -b< | + | -m< |
- | -y< | + | -t< |
- | -g< | + | -y< |
- | -h[hostname] | + | -g< |
- | -u< | + | -h[hostname] |
- | -L< | + | -u< |
- | -E< | + | -L< |
- | -i< | + | -E< |
- | -f use non-buffered stream for console messages | + | -i< |
- | -a | + | -f use non-buffered stream for console messages |
- | -e< | + | -a |
- | -o< | + | |
- | -n send status messages to NUL instead of stderr | + | -A< |
- | -q send console messages to NUL instead of stdout | + | |
- | -v | + | -o< |
- | -x | + | |
- | -l loop until intentionally terminated | + | -S send status messages to stdout |
- | -p wait for keypress (pause) on exit | + | |
- | -! wait for keypress (pause) on error | + | -q send console messages to / |
+ | -v | ||
+ | -x | ||
+ | -l loop until intentionally terminated | ||
+ | -p wait for keypress (pause) on exit | ||
+ | -! wait for keypress (pause) on error | ||
+ | -D load the script into an interactive debugger | ||
</ | </ | ||
Line 50: | 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 87: | 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 98: | 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: | ||
+ | * [[: | ||
* [[: | * [[: | ||
* [[: | * [[: | ||
{{tag> | {{tag> |