[tex-live] texlua: os.execute does not redirect on TL/w32

Siep Kroonenberg siepo at cybercomm.nl
Sun Apr 22 19:12:56 CEST 2012

On Windows, I couln't get redirection to work with TL texlua:

os.execute('some_program 2>some_file')

with e.g. a program

#include <stdio.h>
main() {
  fprintf(stderr,"Hello, world!\n");

Error message:

win32_system("x:\scriptest\lua\helloerr" 2>test.txt) call failed (Error 193).

Same with standard output, although there you could probably do
something with os.popen instead.

No problems under Linux or with MikTeX.

Siep Kroonenberg

More information about the tex-live mailing list