On 14-5-2012 10:56, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
Hello,
I'd need to call the OS, namely lua in it.
I have the following code:
---- \write18{lua -e "require 'lfs'"} \write18{lua -e require'lfs'}
\starttext A \stoptext ----
When calling directly from the command line
lua -e "require 'lfs'"
- there is no error.
From within the Context code, I'm getting (see CmdLine.log):
" .... lua.exe: (command line):1: '=' expected near 'lfs' lua.exe: (command line):1: '=' expected near '<eof>'... "
What could be the problem?
My OS is WinXP 32b.
And how about \ctxlua{os.execute(lua -e "require 'lfs'")} btw, if you run texlua you get lfs for free. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------