From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74867 Path: news.gmane.org!not-for-mail From: Kip Warner Newsgroups: gmane.comp.tex.context Subject: Including command output Date: Sun, 04 Mar 2012 19:07:12 -0800 Message-ID: <1330916832.17258.45.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0234065480==" X-Trace: dough.gmane.org 1330916862 6898 80.91.229.3 (5 Mar 2012 03:07:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Mar 2012 03:07:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 05 04:07:41 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4OGz-0002rW-5c for gctc-ntg-context-518@m.gmane.org; Mon, 05 Mar 2012 04:07:41 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55141CB287; Mon, 5 Mar 2012 04:07:40 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Kw4T84d6aMTp; Mon, 5 Mar 2012 04:07:37 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62368CB283; Mon, 5 Mar 2012 04:07:37 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06333CB283 for ; Mon, 5 Mar 2012 04:07:36 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id bgDJle59whMT for ; Mon, 5 Mar 2012 04:07:22 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 74A47CB282 for ; Mon, 5 Mar 2012 04:07:21 +0100 (CET) Original-Received: from homiemail-a41.g.dreamhost.com (caibbdcaaaaf.dreamhost.com [208.113.200.5]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2537GYO012635 for ; Mon, 5 Mar 2012 04:07:17 +0100 Original-Received: from homiemail-a41.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a41.g.dreamhost.com (Postfix) with ESMTP id BE6F144C061 for ; Sun, 4 Mar 2012 19:07:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thevertigo.com; h=subject:from:to :content-type:date:message-id:mime-version; q=dns; s= thevertigo.com; b=bcLJuduRfqksM9UvS1tO8+ILi2+Mpl+llEoGFs2m9EXYK+ UGhHMXwKkpFUtINE84LEd8R9a/2zaj8wo8NpKp3cQS2xaruyj+WRI93KTMJ/guuW qBwAja6fTrHqMj/xuZf003Ns209/Lsv54RRE0NomKclGjOH0kFLtOiV4HoUos= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thevertigo.com; h=subject :from:to:content-type:date:message-id:mime-version; s= thevertigo.com; bh=UEvPn/W432amx/WF6QJdLrQaBZ4=; b=mE4x4M6m9pB50 HeDIpfAvmcKV1Khpaw4KcMbESIJZ+D1tKXkVCX++eJwrB8IAAn+PLUNUYClgK7Le JLwnxAerp0Z+fqvKYyxV//ttJyYYoL5DFb8wS28woGkHybXqRhmsX95pPRRjzg3v mW+0on0FDv1prKlhThU71tZmRfm57Y= Original-Received: from [192.168.1.64] (76-10-184-87.dsl.teksavvy.com [76.10.184.87]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: kip@thevertigo.com) by homiemail-a41.g.dreamhost.com (Postfix) with ESMTPSA id 8B6B044C05D for ; Sun, 4 Mar 2012 19:07:13 -0800 (PST) X-Mailer: Evolution 2.32.1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.113.200.5; country=US; region=CA; city=Brea; postalcode=92821; latitude=33.9269; longitude=-117.8612; metrocode=803; areacode=714; http://maps.google.com/maps?q=33.9269,-117.8612&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0LGFD7gel - cb8c14114306 - 20120305 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74867 Archived-At: --===============0234065480== Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-UwAznWeljuZl7hs49pdo" --=-UwAznWeljuZl7hs49pdo Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hey list, I'd like to include the output of a command. I am using the following to define the command, \def\BazaarRevision{\cldcontext{os.resultof"bzr revno | tr -d '\\n'"}} and the following to use the output of the command, \BazaarRevision A concern I have is whether this command is executed multiple times during the typesetting process when it need only be done once with the result cached. If this is indeed the case, does anyone have any suggestions? --=20 Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com --=-UwAznWeljuZl7hs49pdo Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEABECAAYFAk9ULeAACgkQLXnfK7bii23rpQCfS82iRZPttFOSGcDNuQB/24xg bpMAmgPiBUXS8w0jE/YEIf5JO94zEJpa =CIBw -----END PGP SIGNATURE----- --=-UwAznWeljuZl7hs49pdo-- --===============0234065480== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0234065480==--