Builtin

os.exec

os.exec{ path:str, args:{seq:int, s:str}, exit_code:int, err:str, output:str }

Executes operating system commands.

Check output for any results.

Check exit_code for any failures.

Examples

pwd
import("os")
os.exec(path:="pwd")

┌─────────────┬───────────┬─────┬─────────────────────┐
│ args        │ exit_code │ err │ output              │
├─────────────┼───────────┼─────┼─────────────────────┤
│ ┌─────┬───┐ │         0 │     │ /home/ra/schema_one │
│ │ seq │ s │ │           │     │                     │
│ ├─────┼───┤ │           │     │                     │
│ └─────┴───┘ │           │     │                     │
└─────────────┴───────────┴─────┴─────────────────────┘