wasmer/wasix-subprocess-example

wasi

Public
wasmer run wasmer/wasix-subprocess-example

WASIX Subprocesses

This example shows how to spawn subprocesses in WASIX. This would be primarily used in conjunction with other modules that can be loaded in using the --use flag.

Usage

Compiling to WASIX

cargo wasix build

Running the application

wasmer run ./target/wasm32-wasmer-wasi/debug/wasix-subprocess.wasm --use sharrattj/coreutils

Output

status: exit code: 0
stdout: ---------- 1 somebody somegroup 0 Jan  1  1970 bin
---------- 1 somebody somegroup 0 Jan  1  1970 dev
---------- 1 somebody somegroup 0 Jan  1  1970 etc
---------- 1 somebody somegroup 0 Jan  1  1970 tmp
---------- 1 somebody somegroup 0 Jan  1  1970 usr

stderr:

This application is published on wasmer registry as wasmer/wasix-subprocess. You can run it with wasmer run wasmer/wasix-subprocess --use sharrattj/coreutils

An example of using subprocesses in Wasmer

More packages
wasmer-examples/ffmpeg-react website
wasmer/wasmer-edge-docusaurus-example website
wasmer/wasmer-edge-hugo-example website
wasmer/wasmer-edge-gatsby-example website
wasmer/wasmer-edge-astro-example website
wasmer/wasmer-edge-mkdocs-example website
an example wasmer package
Rodrigo Andrés Vilina
Rodrigo Andrés Vilina
Rodrigo Andrés Vilina
Rodrigo Andrés Vilina
Example of the Tantivy CLI running on WASIX
wasmer/wasmer-edge-svelte-example website
wasmer/wasmer-edge-next-ssg-example website

Making software universally accessible