\executesystemcommand dont work?
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. Thanx Jaroslav Hajtmar Here is my minimal example: When I compile maintestfile.tex, then I expect, that compilebyexecutesystemcommand.pdf is created during compilation of maintestfile.tex file. I have two files. First is "test.tex" name: \starttext \input tufte \stoptext And second is file maintestfile.tex: \starttext \executesystemcommand{context --result=compilebyexecutesystemcommand.pdf test.tex} \input knuth \stoptext
On 02/16/2015 12:41 PM, 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?
Hi Jaroslav, the sample you sent works fine for me. Both files get compiled.
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.
I’m using latest beta in Fedora 20. At work, I use Win7 64 bits and \executesystemcommand works also fine (I use it every day). Sorry, but I’m afraid I don’t have a clue why it doesn’t work in your system. Pablo -- http://www.ousia.tk
Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole. It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this? Have you Pablo the latest Microsoft Windows 7 update?? Thanx Jaroslav Hajtmar Dne 16.2.2015 v 21:20 Pablo Rodriguez napsal(a):
On 02/16/2015 12:41 PM, 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? Hi Jaroslav,
the sample you sent works fine for me. Both files get compiled.
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. I’m using latest beta in Fedora 20.
At work, I use Win7 64 bits and \executesystemcommand works also fine (I use it every day).
Sorry, but I’m afraid I don’t have a clue why it doesn’t work in your system.
Pablo
On 2/16/2015 10:20 PM, Jaroslav Hajtmar wrote:
Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole.
It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this?
Have you Pablo the latest Microsoft Windows 7 update??
It's hard to imagine that such a system call changes. I use windows 8 which seems to work ok. Are you sure that you use no local patches? A while ago all file io and system code in mkiv was wrapped in a way that permits sandboxing (that was already the case but now it's a bit more flexible and efficient). Hans ps. You had issues on your machine before with executing if I remember right. Maybe something fundamental> ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 02/16/2015 10:20 PM, Jaroslav Hajtmar wrote:
Thanks to Pablo for testing of functionality. Does anyone know whether it could be related to the random last comprehensive update of Win7? I read that Microsoft corrected with problem of big security hole.
It is strange that a few days ago I find it all worked very well and after the last update of Windows 7 it not working. You can someone please verify this?
Have you Pablo the latest Microsoft Windows 7 update??
Hi Jaroslav, I’m on Fedora 20, no Win7 here. I had a similar problem with geany in WinXP. I couldn’t get \executesystemcommand running. I had to switch to Notepad++ because of this. I still wonder what was wrong with that (although I didn’t investigate it further). Just in case it might help, Pablo -- http://www.ousia.tk
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
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
On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote:
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.
write18 is enabled on your system; I don't know why the shell command does not work. Try this instead (I assume that windows comes with the echo command): \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Post only the output of the 2nd run (so that the console output is shown once and not thrice). How are you running context? (Typing the command from a terminal, or using an IDE?) Aditya
Hi Aditya. Thanx for reply. I am sending result from output console from your example ie: \starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext Output is below. Regarding the call ConTeXt, I often calls it directly from the editor (PsPad) but when frequently repeated compilations, then I type commands directly from terminal (command line of windows) 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 test > before calling shell command test > after calling shell command 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.231 sec), 76 tables (0.00 6 sec), 440 chunks (0.237 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, 241 indirect, 296 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.267 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: 59 MB (ctx: 59 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (¤ä╬Á¤ç) mkiv lua stats > runtime: 0.721 seconds system | total runtime: 1.095 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 test > before calling shell command test > after calling shell command 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.012 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.231 sec), 76 tables (0.006 sec), 440 chunks (0.237 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.004 seconds saving, 0.001 seconds loading mkiv lua stats > callbacks: 55 direct, 241 indirect, 296 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.267 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: 59 MB (ctx: 59 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.721 seconds Dne 16.2.2015 v 23:59 Aditya Mahajan napsal(a):
On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote:
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.
write18 is enabled on your system; I don't know why the shell command does not work.
Try this instead (I assume that windows comes with the echo command):
\starttext \writestatus{test}{before calling shell command} \immediate\write18{echo HELP} \writestatus{test}{after calling shell command} \stoptext
Post only the output of the 2nd run (so that the console output is shown once and not thrice).
How are you running context? (Typing the command from a terminal, or using an IDE?)
Aditya
On Mon, Feb 16, 2015 at 11:44 PM, Jaroslav Hajtmar
Thanx Aditya for reply.
I compile this ConTeXt file:
\starttext \immediate\write18{context --version} \stoptext
\starttext \immediate\write18{echo "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"} \stoptext works ok here with the latest standalone and win 8.1 -- luigi
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
participants (5)
-
Aditya Mahajan
-
Hans Hagen
-
Jaroslav Hajtmar
-
luigi scarso
-
Pablo Rodriguez