\ctxlua{os.execute(lua -e "require 'lfs'")}
... Gives: " ... fonts > latin modern fonts are not preloaded languages > language en is active ! LuaTeX error <main ctx instance>:1: attempt to call global 'e' (a nil value) stack traceback: <main ctx instance>:1: in main chunk. system > tex > error on line 4 in file C:/Lukas/ConTeXt/TestDDv/t1.mkiv: LuaTeX error ... 1 %\write18{lua -e "require 'lfs'"} 2 % 3 4 >> \ctxlua{os.execute(lua -e "require 'lfs'")} 5 %\ctxlua{os.execute([[lua -e "require 'lfs'"]])} 6 7 \starttext 8 A 9 \stoptext 10 l.4 \ctxlua{os.execute(lua -e "require 'lfs'")} ... " If I try: \ctxlua{os.execute([[lua -e "require 'lfs'"]])} I get error: " ... languages > language en is active lua: (command line):1: '=' expected near 'lfs' {c:/ConTeXt/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} ... " (Like if "'" were gobbled...)
btw, if you run texlua you get lfs for free.
OK, this is just a sample. I need to use another file, in fact. 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