[Dev-luatex] os.exec and waiting for process

Taco Hoekwater taco at elvenkind.com
Fri Jan 18 08:46:41 CET 2008

Norbert Preining wrote:
> Dear Taco, dear all,
> Reinhard Kotucha wrote a support script in texlua but there is a strange
> thing:
> 	os.exec(...)
> does not wait for the process to terminate.
> Now my question is: Is there any way to do that, i.e., to call a
> different program and wait for it to terminate, resembling the perl
> 'system' call.

For that, you should use os.execute() from the core lua.
The function os.exec() *replaces* the current process with
the to-be-executed process, and never returns.

Best wishes,

More information about the dev-luatex mailing list