From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31121 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: Re: run a ruby script and use the standard output ??? Date: Fri, 29 Sep 2006 17:34:44 +0200 Message-ID: <451D3D14.4020901@nibua-r.org> References: <451AE846.2090701@nibua-r.org> <451B7D99.20902@wxs.nl> <451B936D.9070306@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1129566311==" X-Trace: sea.gmane.org 1159544118 25129 80.91.229.2 (29 Sep 2006 15:35:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 29 Sep 2006 15:35:18 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 29 17:35:16 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTKOQ-00063c-4m for gctc-ntg-context-518@m.gmane.org; Fri, 29 Sep 2006 17:35:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65A861FEE2; Fri, 29 Sep 2006 17:35:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08391-06; Fri, 29 Sep 2006 17:35:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C1B2D1FE9C; Fri, 29 Sep 2006 17:35:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05E531FE9C for ; Fri, 29 Sep 2006 17:35:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09106-03-2 for ; Fri, 29 Sep 2006 17:34:56 +0200 (CEST) Original-Received: from 27.mail-out.ovh.net (27.mail-out.ovh.net [213.186.38.137]) by ronja.ntg.nl (Postfix) with SMTP id 9B29C1FE99 for ; Fri, 29 Sep 2006 17:34:55 +0200 (CEST) Original-Received: (qmail 6077 invoked by uid 503); 29 Sep 2006 15:36:28 -0000 Original-Received: from b6.ovh.net (HELO mail172.ha.ovh.net) (213.186.33.56) by 27.mail-out.ovh.net with SMTP; 29 Sep 2006 15:36:28 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 29 Sep 2006 15:34:53 -0000 Original-Received: from d83-179-246-171.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@83.179.246.171) by ns0.ovh.net with SMTP; 29 Sep 2006 15:34:52 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: mailing list for ConTeXt users In-Reply-To: <451B936D.9070306@elvenkind.com> X-Ovh-Remote: 83.179.246.171 (d83-179-246-171.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:31121 Archived-At: This is a multi-part message in MIME format. --===============1129566311== Content-Type: multipart/alternative; boundary="------------050805030705090908060902" This is a multi-part message in MIME format. --------------050805030705090908060902 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable \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. \par ??? Taco Hoekwater a =E9crit : >Hans Hagen wrote: > =20 > >>piping: the latest versions of pdftex support this (i\ve forgotten the = syntax, but taco who wrote the patch may remember) >> =20 >> > >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 > > > =20 > --------------050805030705090908060902 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit \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


  

--------------050805030705090908060902-- --===============1129566311== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============1129566311==--