\starttext

\input "|ls"

\stoptext

leads to

(/usr/share/texmf-tetex/tex/latex/tools/.tex File ignored)
Runaway argument?
ls"
! Paragraph ended before \next was complete.
<to be read again>
                   \par

???

Taco Hoekwater a écrit :
Hans Hagen wrote:
  
piping: the latest versions of pdftex support this (i\ve forgotten the syntax, but taco who wrote the patch may remember)
    

piping syntax:

   \input "|ruby ./myscript.rb \vartest XXXXXXXXX"

the magic trick is the | symbol. With your current tex:

   \writ18{ruby ./myscript.rb \vartest XXXXXXXXX > whatever.tex}
   \input whatever % or something using \openin ...


Taco
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context