Scroll to navigation

EMRUN(1) User Commands EMRUN(1)

NAME

emrun - emscripten tool to compile as an HTML page

DESCRIPTION

usage: emrun [emrun_options] filename.html -- [html_cmdline_options]

where emrun_options specifies command line options for emrun itself, whereas html_cmdline_options specifies startup arguments to the program.

If you are seeing "unrecognized arguments" when trying to pass arguments to your page, remember to add `--` between arguments to emrun itself and arguments to your page.

positional arguments:

serve cmdlineparams

options:

show this help message and exit
If true, any previously running instances of the target browser are killed before starting.
If true, the spawned browser process is forcibly killed when it calls exit(). Note: Using this option may require explicitly passing the option --browser=/path/to/browser, to avoid emrun being detached from the browser process it spawns.
If specified, a HTTP web server is not launched to host the page to run.
If specified, emrun will not launch a web browser to run the page.
If specified, skips printing the warning message if html page is detected to not have been built with --emrun linker flag.
If true, serves the web page even after the application quits by user closing the web page.
If true, serves the web page even after the application quits by a call to exit().
If set, specifies the root path that the emrun web server serves. If not specified, the directory where the target .html page lives in is served.
Enable verbose logging from emrun internal operation.
Specifies the hostname the server runs in.
Specifies the port the server runs in.
Specifies a log filename where the browser process stdout data will be appended to.
Specifies a log filename where the browser process stderr data will be appended to.
If no activity is received in this many seconds, the browser process is assumed to be hung, and the web server is shut down and the target browser killed. Disabled by default.
If the browser process does not quit or the page exit() in this many seconds, the browser is assumed to be hung, and the web server is shut down and the target browser killed. Disabled by default.
Sets the exit code that emrun reports back to caller in the case that a page timeout occurs. Default: 99999.
Prints out all detected browser that emrun is able to use with the --browser command and exits.
Specifies the browser executable to run the web page in.
Specifies the arguments to the browser executable.
Launches the page in a browser of an Android device connected to an USB on the local system. (via adb)
Prints information about the current system at startup.
Prints information about the target browser to launch at startup.
If specified, --system_info and --browser_info are outputted in JSON format.
If true, the browser is launched into a new clean Firefox profile that is suitable for unattended automated runs. (If target browser != Firefox, this parameter is ignored)
If set, information lines are printed out an HTMLfriendly format.
If specified, opens browser in private/incognito mode.
If specified, overrides the directory for dump files using emrun_file_dump method.
July 2022 emrun 3.1.6~dfsg