18 Jan
2008
18 Jan
'08
7:46 a.m.
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, Taco