[NTG-context] \executesystemcommand dont work?

Jaroslav Hajtmar hajtmar at gyza.cz
Tue Feb 17 06:54:01 CET 2015


Hi Luigi.
Thanx for reply. I am sending result from output console from your 
example ie:
\starttext
\immediate\write18{echo "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"}
\stoptext

Output is below.
To be honest, I've never done such a thing and did not examine how many 
times ConTeXt runs. I have always relied on the default settings.

Thankx for attempt to solve my problem.
Jaroslav Hajtmar


C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>context test

mtx-context     | warning: no (local) file './test', proceeding
mtx-context     | run 1: luatex 
--fmt="C:/context/tex/texmf-cache/luatex-cache/c
ontext/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test"
  --lua="C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb
1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line 
--c:currentrun=1 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=1 --c:maxnofruns=8 
"cont-y
es.mkiv"
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5064)
  \write18 enabled.
open source     > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv
                 >
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >

                 >
system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
close source    > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new
.mkiv
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs
v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
close source    > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancs
v_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
close source    > 1 > 3 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes
.mkiv

mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/conte
xt/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.011 seconds, 0 scans 
with scanti
me 0.000 seconds, 0 shared scans, 8 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 364 modules (0.224 sec), 76 
tables (0.00
6 sec), 440 chunks (0.230 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 20 
glue_spe
c, 2 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 
instances (re
)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)

mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.003 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
mkiv lua stats  > randomizer: resumed with value 0.53962828455458
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
objectcompres
slevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular
.otf
mkiv lua stats  > fonts load time: 0.241 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win
64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2
014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 40426 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 56 MB (ctx: 
56 MB),
hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.643 seconds

system          | total runtime: 1.002 seconds
C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRod
riguez5\bbb>


and here is log file:

open source     > 1 > 1 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
                 >
ConTeXt  ver: 2015.02.03 23:55 MKIV beta  fmt: 2015.2.16  int: 
english/english >
                 >
system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > 
C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancsv_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
close source    > 2 > 3 > 
C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancsv_ConTeXt_module/2PabloRodriguez5/bbb/test.tex
close source    > 1 > 3 > 
C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

system          > structure > start used structure

used structure  > text: test

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex 
foundname=C:/context/tex/texmf-context/tex/context/base/cont-yes.mkiv 
usedmethod=database
used file       >    2: filename=publ-imp-apa.lua filetype=lua 
foundname=C:/context/tex/texmf-context/tex/context/base/publ-imp-apa.lua 
usedmethod=database
used file       >    3: filename=cont-new.mkiv filetype=tex 
foundname=C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv 
usedmethod=database
used file       >    4: filename=lang-us.lua filetype=lua 
foundname=C:/context/tex/texmf-context/tex/context/patterns/lang-us.lua 
usedmethod=database
used file       >    5: 
filename=C:\$~1da\ConTeXt\ConTeXt-Tests\my_way\ScanCSV\t-scancsv_ConTeXt_module\2PabloRodriguez5\bbb/test 
foundname=C:/$~1da/ConTeXt/ConTeXt-Tests/my_way/ScanCSV/t-scancsv_ConTeXt_module/2PabloRodriguez5/bbb/test.tex 
usedmethod=qualified
used file       >    6: filename=lm.lfg filetype=tex 
foundname=C:/context/tex/texmf-context/tex/context/fonts/lm.lfg 
usedmethod=database
used file       >    7: filename=lmroman12-regular filetype=otf 
format=otf 
foundname=C:/context/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf 
usedmethod=database
used file       >    8: filename=latinmodern-math.otf 
filetype=opentypefonts 
foundname=C:/context/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf 
usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > currentrun="1"
used option     > fulljobname="./test"
used option     > input="./test"
used option     > kindofrun="1"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./test

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: 
C:/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > resource resolver: loadtime 0.011 seconds, 0 scans 
with scantime 0.000 seconds, 0 shared scans, 8 found files, scanned 
paths: <none>
mkiv lua stats  > stored bytecode data: 364 modules (0.224 sec), 76 
tables (0.006 sec), 440 chunks (0.230 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 439 lists of 438
mkiv lua stats  > node memory usage: 2 glue, 2 penalty, 6 attribute, 20 
glue_spec, 2 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 2 
instances (re)created, 3 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.003 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
mkiv lua stats  > randomizer: resumed with value 0.53962828455458
mkiv lua stats  > result saved in file: test.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.241 seconds
mkiv lua stats  > used platform: win64, type: windows, binary subtree: 
texmf-win64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 
(tex live 2014/w32tex) (rev 5064)
mkiv lua stats  > control sequences: 40426 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 56 MB (ctx: 
56 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.643 seconds





Dne 17.2.2015 v 0:20 luigi scarso napsal(a):
>
> \starttext
> \immediate\write18{echo "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"}
> \stoptext



More information about the ntg-context mailing list