From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107548 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Hans van der Meer Newsgroups: gmane.comp.tex.context Subject: mtxrun exit code Date: Fri, 29 May 2020 11:20:22 +0200 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============9197253563222446505==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="112846"; mail-complaints-to="usenet@ciao.gmane.io" To: NTG ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri May 29 11:20:55 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jebCB-000TFt-Dk for gctc-ntg-context-518@m.gmane-mx.org; Fri, 29 May 2020 11:20:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 35831184562; Fri, 29 May 2020 11:20:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6zCe25MQ3Edo; Fri, 29 May 2020 11:20:25 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 744071845B5; Fri, 29 May 2020 11:20:25 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CE4B1184556 for ; Fri, 29 May 2020 11:20:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MmJ2xxH7oBAm for ; Fri, 29 May 2020 11:20:23 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.54.42.166; helo=smtpq3.tb.mail.iss.as9143.net; envelope-from=havdmeer@ziggo.nl; receiver= Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 3AC5F1843F3 for ; Fri, 29 May 2020 11:20:23 +0200 (CEST) Original-Received: from [212.54.42.110] (helo=smtp7.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jebBe-0001Zz-U3 for ntg-context@ntg.nl; Fri, 29 May 2020 11:20:22 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ziggo.nl; s=202002corplgsmtpnl; h=To:Date:Subject:From; bh=TNnellm5f7fXXSa61I3c3E+4Fq5SLLv4Cd1FY5QD/Gw=; b=P/k6TqgyNUwz+1df+4lJJGOCYw H0SDQiPERj19GOxl8n/rtOKG4d1A1xbeLoqz/Bd4uhKq2mi7/OcoK1zf3NtcBe3hlCn5VQJvMmdGk 1m0buwFeoIRvRg6I7EjJ0dWdbtGdvWHG8aXIviILQyDD0PS445g8WcPPzVxVYAi69RlX9WGyIK11N PDn3jFRLav51/ClzWEKScS4FBVhozYYp9j8BZdEflZeFMx3Zp7wmDGmnxXAyedvyiuRhc5TnYte1L GEiIfE491KmjDpbQh5FgBufEARQIVcdt2uTQd6LPacpxnQRzQDuOuHu0tyD1be7fcy1vcJYP1w6fs +NA44hlw==; Original-Received: from 84-106-134-200.cable.dynamic.v4.ziggo.nl ([84.106.134.200] helo=[192.168.178.15]) by smtp7.tb.mail.iss.as9143.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jebBe-0004YM-Qx for ntg-context@ntg.nl; Fri, 29 May 2020 11:20:22 +0200 X-Mailer: Apple Mail (2.3445.104.14) X-SourceIP: 84.106.134.200 X-Authenticated-Sender: havdmeer@ziggo.nl (via SMTP) X-Ziggo-spambar: / X-Ziggo-spamscore: 0.0 X-Ziggo-spamreport: CMAE Analysis: v=2.3 cv=Ne99K1L4 c=1 sm=1 tr=0 a=wCstmS+ZHA3zSJXjQC+ubA==:17 a=9+rZDBEiDlHhcck0kWbJtElFXBc=:19 a=sTwFKg_x9MkA:10 a=--PC-ozOfN-R5KVo6PoA:9 a=CjuIK1q_8ugA:10 a=Zorw0gbnWBxQTqsX:21 a=_W_S_7VecoQA:10 X-Ziggo-Spam-Status: No X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:107548 Archived-At: --===============9197253563222446505== Content-Type: multipart/alternative; boundary="Apple-Mail=_60D7D70A-1FD4-4ADF-9E18-7CE47656D497" --Apple-Mail=_60D7D70A-1FD4-4ADF-9E18-7CE47656D497 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I am producing a series of files in a shell script with mtxrun = --autogenerate --script context input Doing exit mtxrun... shows there is no exit number to test in the shell, = or to ste a shell variable to that value. I can set a global macro \ExitStatus to an exit value depending on = success or failure, pass that on to mtxrun as exit statusd and test that = in the script. For example: \starttext \xmlprocessbuffer{notes}{notes}{} \doif{\ExitStatus}{notok}{"let mtxrun return value 1 as error in = UNIX"} \stoptext After that it would be possible in the shell script to delete the pdf = produced, what is my intention in this case. Is this an option or is there presently another (standard) procedure to = communicate from ConTeXt to the shell. dr. Hans van der Meer --Apple-Mail=_60D7D70A-1FD4-4ADF-9E18-7CE47656D497 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = am producing a series of files in a shell script with mtxrun --autogenerate --script context = input
Doing exit = mtxrun... shows there is no exit number to test in the shell, or = to ste a shell variable to that value.

I can set a global macro \ExitStatus to = an exit value depending on success or failure, pass that on to mtxrun as = exit statusd and test that in the script.

For example:
\starttext
  = \xmlprocessbuffer{notes}{notes}{}
  \doif{\ExitStatus}{notok}{"let mtxrun = return value 1 as error in UNIX"}
\stoptext

After that it would be = possible in the shell script to delete the pdf produced, what is my = intention in this case.

Is this an option or is there presently another = (standard) procedure to communicate from ConTeXt to the shell.

dr. Hans van der Meer


= --Apple-Mail=_60D7D70A-1FD4-4ADF-9E18-7CE47656D497-- --===============9197253563222446505== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============9197253563222446505==--