From: "Mojca Miklavec" <mojca.miklavec.lists@gmail.com>
Subject: \ifshellescape
Date: Tue, 26 Dec 2006 14:35:14 +0100 [thread overview]
Message-ID: <6faad9f00612260535n7b044a6fq3f690cc16ec30fba@mail.gmail.com> (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
next reply other threads:[~2006-12-26 13:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-26 13:35 Mojca Miklavec [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6faad9f00612260535n7b044a6fq3f690cc16ec30fba@mail.gmail.com \
--to=mojca.miklavec.lists@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).