From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32275 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: \ifshellescape Date: Tue, 26 Dec 2006 14:35:14 +0100 Message-ID: <6faad9f00612260535n7b044a6fq3f690cc16ec30fba@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167140148 8016 80.91.229.10 (26 Dec 2006 13:35:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 13:35:48 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 26 14:35:44 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by dough.gmane.org with esmtp (Exim 4.50) id 1GzCSw-0006oy-9R for gctc-ntg-context-518@m.gmane.org; Tue, 26 Dec 2006 14:35:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6439720025; Tue, 26 Dec 2006 14:33:50 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25270-04-13; Tue, 26 Dec 2006 14:33:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 49A941FFC9; Tue, 26 Dec 2006 14:33:39 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CF7631FFC9 for ; Tue, 26 Dec 2006 14:33:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25270-04-12 for ; Tue, 26 Dec 2006 14:33:30 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by ronja.ntg.nl (Postfix) with SMTP id 992361FF6E for ; Tue, 26 Dec 2006 14:33:30 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so4199079nfc for ; Tue, 26 Dec 2006 05:35:14 -0800 (PST) Original-Received: by 10.49.41.3 with SMTP id t3mr18693359nfj.1167140114690; Tue, 26 Dec 2006 05:35:14 -0800 (PST) Original-Received: by 10.48.209.2 with HTTP; Tue, 26 Dec 2006 05:35:14 -0800 (PST) Original-To: "mailing list for ConTeXt users" Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32275 Archived-At: 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