$() multimethod

Methods

$()(p:Process) Source: stdlib.ngs:6243
Run a process
$()(cp:CommandsPipeline) Source: stdlib.ngs:6376
Run external processes described by the commands pipeline. Waits for the commands to finish unless "&" is specified.

Automatically called by NGS for syntax

$(my_prog) , $(some | programs)

Returns

Process

Example

if $(test -f /myfile) { ... }
# or
p = $(node main.js serve &)
YOUR_TESTS_OF_NODE_SERVER_HERE
p.kill()