![](https://secure.gravatar.com/avatar/6114858d84b0f40cf715f12237ab67a1.jpg?s=120&d=mm&r=g)
26 Dec
2006
26 Dec
'06
6:35 a.m.
Hello, is there any command to test for write18/shell escape available in ConTeXt? In one of the LaTeX packages I saw: \newif\ifShellEscape ... \ifShellEscape \def\tmpfile{/tmp/w18-test-\the\year\the\month\the\day\the\time} \ifmiktex \immediate\write18{rem >"\tmpfile"} \else \immediate\write18{touch \tmpfile} \fi \ifmiktex \IfFileExists{\tmpfile.}{\ShellEscapetrue}{\ShellEscapefalse} \else \IfFileExists{\tmpfile}{\ShellEscapetrue}{\ShellEscapefalse} \fi \fi Thanks a lot, Mojca