Re: [NTG-context] Newbie questions: integrating ruby/perl scripts into a document
\executesystemcommand{some_external_program ...}
When I try something like \starttext Hello \executesystemcommand{1.rb} \stoptext I get systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex) (E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) systems : begin file cd-mus at line 1 system(1.rb)...disabled. -- Best regards, Vyatcheslav mailto:yatskovsky@gmail.com
Vyatcheslav Yatskovsky wrote:
\executesystemcommand{some_external_program ...}
When I try something like
\starttext Hello \executesystemcommand{1.rb} \stoptext
I get
systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex) (E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) systems : begin file cd-mus at line 1 system(1.rb)...disabled.
if you put your scripts in the texmf tree, you can also use: texmfstart 1.rb (which will locate the script and run it) Hans -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 16 Feb 2007, Vyatcheslav Yatskovsky wrote:
\executesystemcommand{some_external_program ...}
When I try something like
\starttext Hello \executesystemcommand{1.rb} \stoptext
I get
systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex) (E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) systems : begin file cd-mus at line 1 system(1.rb)...disabled.
See http://contextgarden.net/write18 Aditya
On Fri, 16 Feb 2007, Aditya Mahajan wrote:
On Fri, 16 Feb 2007, Vyatcheslav Yatskovsky wrote:
\executesystemcommand{some_external_program ...}
When I try something like
\starttext Hello \executesystemcommand{1.rb} \stoptext
I get
systems : system commands are disabled (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) (E:\MiKTeX\tex\context\base\sort-def.tex) (E:\MiKTeX\tex\context\base\sort-lan.tex) (D:\context\cd-mus.tuo) (D:\context\cd-mus.tuo) systems : begin file cd-mus at line 1 system(1.rb)...disabled.
Also see http://wiki.contextgarden.net/Executesystemcommand on how to integrate the output of your program back into ConTeXt. Aditya
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Vyatcheslav Yatskovsky