![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
probably some os.execute parsing ...
Do you mean Lua itself does the parsing and substitution? I guessed [lua]tex core... When I try to call on the command line: " C:\Lukas\ConTeXt\TestDDv>lua Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
os.execute([[lua -e "print 'WWW'"]]) WWW os.execute([[echo lua -e "print 'WWW'"]]) lua -e "print 'WWW'" =os.exec nil =os.spawn nil
" - There is no '/" substitution in standalone Lua (?!).
does os.exec or os.spawn work ok?
Well, the 'os.exec' works, in condition that it is called with "cmd /c": ---- \ctxlua{os.execute([[echo lua -e "print 'EXECUTE'"]])} \ctxlua{os.exec([[cmd.exe /c echo lua -e "print 'EXEC'"]])} \ctxlua{os.spawn([[cmd.exe /c echo lua -e "print 'SPAWN'"]])} \starttext A \stoptext ---- Gives: " ... languages > language en is active lua -e "print "EXECUTE"" lua -e "print 'EXEC'" system | total runtime: 0.609 " Interesting that the string to be passed to 'os.exec' keeps ' whilst that to 'os.execute' doesn't. Why this happens? Anyhow, thanks for the idea with 'os.exec'. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038