30 Jan
2011
30 Jan
'11
10:19 p.m.
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") h:close() end \stopluacode \def\Pipe#1{\ctxlua{userdata.pipe"#1"}} But I suppose that there is already a nice command in the core... ;) -- Peter