ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \ifshellescape
@ 2006-12-26 13:35 Mojca Miklavec
  2006-12-26 17:48 ` \ifshellescape Aditya Mahajan
  2006-12-26 18:57 ` \ifshellescape Peter Münster
  0 siblings, 2 replies; 10+ messages in thread
From: Mojca Miklavec @ 2006-12-26 13:35 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-12-27  8:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-26 13:35 \ifshellescape Mojca Miklavec
2006-12-26 17:48 ` \ifshellescape Aditya Mahajan
2006-12-26 18:57 ` \ifshellescape Peter Münster
2006-12-26 20:55   ` \ifshellescape Henning Hraban Ramm
2006-12-26 21:16   ` \ifshellescape Martin Schröder
2006-12-26 22:19   ` \ifshellescape Hans Hagen
2006-12-26 22:33     ` \ifshellescape Mojca Miklavec
2006-12-26 22:43       ` \ifshellescape Martin Schröder
2006-12-26 23:08     ` \ifshellescape Mojca Miklavec
2006-12-27  8:22       ` \ifshellescape Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).