<div dir="ltr">As far as I can see, texosquery-jre8 should be allowed in the restricted<div>shell escape.</div><div><br></div><div>However, the following plain TeX document only works if the call is</div><div><br></div><div>  pdftex -shell-escape test</div><div><br></div><div>Here's the test.tex file:</div><div><br></div><div><div>\input texosquery</div><div>\def\TeXOSInvokerName{texosquery-jre8}</div><div>\TeXOSQuery{\result}{-o -r}</div><div>\def\parseresult#1#2{OS Name: {\tt #1}. OS Version: {\tt #2}.}</div><div>\ifx\result\empty</div><div> Query failed!</div><div>\else</div><div> \expandafter\parseresult\result</div><div>\fi</div><div>\bye</div></div><div><br></div><div>The log when pdftex is called without -shell-escape</div><div><br></div><div><div>This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdftex 2017.4.18)  18 APR 2017 22:23</div><div>entering extended mode</div><div> restricted \write18 enabled.</div><div> %&-line parsing enabled.</div><div>**qrp</div><div>(./qrp.tex</div><div>(/usr/local/texlive/2017/texmf-dist/tex/latex/texosquery/texosquery.tex</div><div><br></div><div>TeXOSQuery: reading configuration file</div><div>(/usr/local/texlive/2017/texmf-dist/tex/latex/texosquery/texosquery.cfg)</div><div>\@texosquery@digitindex=\count27</div><div>)</div><div><br></div><div>TeXOSQuery: texosquery-jre8 -o -r</div><div>[1{/usr/local/texlive/2017/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] )</us</div><div>r/local/texlive/2017/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></div><div>Output written on qrp.pdf (1 page, 12388 bytes).</div><div>PDF statistics:</div><div> 12 PDF objects out of 1000 (max. 8388607)</div><div> 7 compressed objects within 1 object stream</div><div> 0 named destinations out of 1000 (max. 500000)</div><div> 1 words of extra memory for PDF output out of 10000 (max. 10000000)</div><div><br></div></div><div>The log when pdftex is called with -shell-escape</div><div><br></div><div><div>This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded format=pdftex 2017.4.18)  18 APR 2017 22:24</div><div>entering extended mode</div><div> \write18 enabled.</div><div> %&-line parsing enabled.</div><div>**qrp</div><div>(./qrp.tex</div><div>(/usr/local/texlive/2017/texmf-dist/tex/latex/texosquery/texosquery.tex</div><div><br></div><div>TeXOSQuery: reading configuration file</div><div>(/usr/local/texlive/2017/texmf-dist/tex/latex/texosquery/texosquery.cfg)</div><div>\@texosquery@digitindex=\count27</div><div>)</div><div>(|texosquery-jre8 -o -r) [1{/usr/local/texlive/2017/texmf-var/fonts/map/pdftex/</div><div>updmap/pdftex.map}] )</usr/local/texlive/2017/texmf-dist/fonts/type1/public/ams</div><div>fonts/cm/cmr10.pfb></usr/local/texlive/2017/texmf-dist/fonts/type1/public/amsfo</div><div>nts/cm/cmtt10.pfb></div><div>Output written on qrp.pdf (1 page, 23256 bytes).</div><div>PDF statistics:</div><div> 16 PDF objects out of 1000 (max. 8388607)</div><div> 10 compressed objects within 1 object stream</div><div> 0 named destinations out of 1000 (max. 500000)</div><div> 1 words of extra memory for PDF output out of 10000 (max. 10000000)</div><div><br></div><div>The relevant part in texmf.cnf (unmodified)</div><div><br></div>shell_escape_commands = \<br>bibtex,bibtex8,\<br>extractbb,\<br>gregorio,\<br>kpsewhich,\<br>makeindex,\<br>repstopdf,\<br>texosquery-jre8,\</div><div><br></div><div>For completeness, I tested a file using imakeidx and makeindex is run</div><div>in the restricted shell escape.<br><div><br></div></div><div>Ciao</div><div>Enrico</div></div>