ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Including command output
@ 2012-03-05  3:07 Kip Warner
  2012-03-05  4:20 ` Aditya Mahajan
  0 siblings, 1 reply; 13+ messages in thread
From: Kip Warner @ 2012-03-05  3:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 586 bytes --]

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?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2012-03-06  5:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-05  3:07 Including command output Kip Warner
2012-03-05  4:20 ` Aditya Mahajan
2012-03-06  1:32   ` Kip Warner
2012-03-06  3:05     ` Aditya Mahajan
2012-03-06  3:11       ` Kip Warner
2012-03-06  3:15         ` Aditya Mahajan
2012-03-06  3:36           ` Kip Warner
2012-03-06  3:38             ` Aditya Mahajan
2012-03-06  3:41               ` Kip Warner
2012-03-06  3:50                 ` Aditya Mahajan
2012-03-06  3:56                   ` Kip Warner
2012-03-06  5:04                     ` Aditya Mahajan
2012-03-06  5:37                       ` Kip Warner

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).