# system_wait

Definition: | integer exit_code = system_wait(string st[, sequence pipes])
Description: | Equivalent to system_exec() with neither bit 4 nor bit 8 set (no new shell, waits for result).
pwa/p2js: | Not supported.
Notes: | Included mainly for compatibility reasons (predated optional parameters, and is now kind of ingrained for me). The pipes parameter should not normally be used: on windows the bit 4/%COMSPEC% of system_exec() handling is required, so unless you do that by hand it will not work as expected. Note this routine has no exact equivalent on Euphoria, though it was originally based on a contribution from Juergen Luethje that can still be found on PCAN, however that was win32-only, and hence I would have to recommend system_exec() for better compatibility instead.
Implementation: | See builtins\syswait.ew (an autoinclude) for details of the actual implementation.
See Also: | system_exec