exec

exec ?-option ...? arg ?arg ...?

Runs a program and gives its output. | makes a pipeline, < and > redirect, and & runs it in the background. A process of exec is outside the root folder and each limit, with the full power of the user. Turn it on only for scripts that you trust.

Options

Option What it does
-ignorestderr Output on the error stream is not an error.
-keepnewline Keeps the last newline of the output.
-vm VM Runs the pipeline in the running guest VM of ztcl::vm, through its agent, and needs the vm capability. Each program of the pipeline runs in that one guest, and a bare name goes through the PATH of the guest. A redirection to a file opens the file on the host under the file policy of the interpreter, and the host copies the bytes. With no file capability, a redirection to a file is an error. & gives the process ids of the guest.
-isolation LEVEL none (the default) runs host programs. vm runs the pipeline in a new guest of ztcl::vm for this call only, as -vm does, and deletes the guest after it. The options -image, -snapshot, -memory, -cpus, -net, -share, -kernel, -initrd, and -cmdline go to ztcl::vm create. With no -image, -snapshot, or -kernel, the guest is of the image ztcl-guest. A guest of an image comes from the pool of booted guests when the embedder has one. It needs the vm capability.
-- Ends the options.

Facts