Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use system function in emscipten for web application #16276

Open
huison-cao opened this issue Feb 13, 2022 · 1 comment
Open

how to use system function in emscipten for web application #16276

huison-cao opened this issue Feb 13, 2022 · 1 comment

Comments

@huison-cao
Copy link

huison-cao commented Feb 13, 2022

There is a system function in emscripten.
library.js:327 system: function(command) { //.....
./emsdk/upstream/emscripten/system/lib/libc/musl/src/process/system.c: 11 int system(const char *cmd)

how to call it, and how to write the command program?

@sbc100
Copy link
Collaborator

sbc100 commented Feb 17, 2022

emscripten doesn't have any support for multiple process or any of fork, exec or spawn capability (at least not as of today). Some folks have tried to create such thing (for example: https://browsix.org/) but you can't do anything like that out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants