[NTG-context] \executesystemcommand dont work?

Jaroslav Hajtmar hajtmar at gyza.cz
Mon Feb 16 23:44:43 CET 2015


Thanx Aditya for reply.

I compile this ConTeXt file:

\starttext
\immediate\write18{context --version}
\stoptext

with last standalone version of ConTeXt (minimals). Below is the console 
output and log file.
I do not know whether this can decipher be from a reading. It seems that 
write18 is enabled. I do not know what could have happened and why it 
does not work. Can be a problem in collision TeXlive vs Standalone 
version (paths problem)? I do not know how to fix it. I tried again to 
install the standalone version, but it did not help. I hope that I have 
somehow smashed up Windows because reinstalling windows because of 
dysfunctional ConTeXt me quite a scare...

Thanx 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.012 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.209 sec), 76 
tables (0.00
5 sec), 440 chunks (0.214 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.000 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
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.239 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: 40425 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 60 MB (ctx: 
60 MB),
hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.627 seconds

mtx-context     | run 2: 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=2 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=2 --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.012 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.201 sec), 76 
tables (0.00
5 sec), 440 chunks (0.206 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.004 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 55 direct, 239 indirect, 294 total
mkiv lua stats  > randomizer: initialized 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.240 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: 40424 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 60 MB (ctx: 
60 MB),
hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.639 seconds

mtx-context     | run 3: 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=3 --c:
fulljobname="./test" --c:input="./test" --c:kindofrun=2 --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.014 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.220 sec), 76 
tables (0.00
6 sec), 440 chunks (0.226 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.250 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: 40425 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 60 MB (ctx: 
60 MB),
hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç)
mkiv lua stats  > runtime: 0.656 seconds

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


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="3"
used option     > fulljobname="./test"
used option     > input="./test"
used option     > kindofrun="2"
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.014 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.220 sec), 76 
tables (0.006 sec), 440 chunks (0.226 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.250 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: 40425 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 60 MB (ctx: 
60 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.656 seconds




Dne 16.2.2015 v 22:47 Aditya Mahajan napsal(a):
> On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote:
>
>> Hi ConTeXist.
>> After a long time I tried to recompile ConTeXt file that contained 
>> the \executesystemcommand. It seems to me that this command stopped 
>> working.
>> Can anyone confirm or refute this my perception?
>> I call \executesystemcommand to compiling another ConTeXt file from 
>> running ConTeXt. I use Windows 7 and problem is under TeXlive 2014 
>> version and Standalone version too.
>
> Is write18 enabled? You'll see a message in the 2nd or 3rd line when 
> you run context, telling the status of write18.
>
> What happens if you use
>
> \immediate\write18{context --version}
>
> (Check the console output for an appropriate message)
>
> Aditya
>
>
>



More information about the ntg-context mailing list