[NTG-context] piping output from external command

2011-01-30 Thread Peter Münster
Hello, This used to work with pdftex: \starttext \input \string|echo hello world \stoptext What's the recommended way, to do this in mkiv? I've defined \Pipe{} like this: \startluacode userdata = userdata or {} function userdata.pipe(c) local h = io.popen(c) context(h:read*a)

Re: [NTG-context] piping output from external command

2011-01-30 Thread Hans Hagen
On 30-1-2011 11:19, Peter Münster wrote: But I suppose that there is already a nice command in the core... ;) os.resultof(...) - Hans Hagen | PRAGMA ADE Ridderstraat 27 |

Re: [NTG-context] piping output from external command

2011-01-30 Thread Peter Münster
Hans Hagen pra...@wxs.nl writes: On 30-1-2011 11:19, Peter Münster wrote: But I suppose that there is already a nice command in the core... ;) os.resultof(...) Thanks! No tex-command...? (not important, \ctxlua{context(os.resultof...)} is ok) -- Peter

Re: [NTG-context] piping output from external command

2011-01-30 Thread Hans Hagen
On 30-1-2011 11:43, Peter Münster wrote: Hans Hagenpra...@wxs.nl writes: On 30-1-2011 11:19, Peter Münster wrote: But I suppose that there is already a nice command in the core... ;) os.resultof(...) Thanks! No tex-command...? never needed it but there is