ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: hajtmar@gyza.cz, mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \executesystemcommand dont work?
Date: Mon, 16 Feb 2015 17:59:47 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.03.1502161754460.8175@hzvpu.rqh> (raw)
In-Reply-To: <54E272DB.7090308@gyza.cz>

On Mon, 16 Feb 2015, Jaroslav Hajtmar wrote:

> Thanx Aditya for reply.
>
> I compile this ConTeXt file:
>
> \starttext
> \immediate\write18{context --version}
> \stoptext
>
> with last standalone version of ConTeXt (minimals). Below is the console 
> output and log file.

write18 is enabled on your system; I don't know why the shell command does 
not work.

Try this instead (I assume that windows comes with the echo command):

\starttext
\writestatus{test}{before calling shell command}
\immediate\write18{echo HELP}
\writestatus{test}{after calling shell command}
\stoptext

Post only the output of the 2nd run (so that the console output is shown 
once and not thrice).

How are you running context? (Typing the command from a terminal, or using 
an IDE?)

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

  reply	other threads:[~2015-02-16 22:59 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16 11:41 Jaroslav Hajtmar
2015-02-16 20:20 ` Pablo Rodriguez
2015-02-16 21:20   ` Jaroslav Hajtmar
2015-02-16 21:37     ` Hans Hagen
2015-02-17  6:01     ` Pablo Rodriguez
2015-02-16 21:47 ` Aditya Mahajan
2015-02-16 22:44   ` Jaroslav Hajtmar
2015-02-16 22:59     ` Aditya Mahajan [this message]
2015-02-17  5:47       ` Jaroslav Hajtmar
2015-02-16 23:20     ` luigi scarso
2015-02-17  5:54       ` Jaroslav Hajtmar
2015-02-17  7:04 Akira Kakuto
2015-02-17  8:55 ` Jaroslav Hajtmar
2015-02-17 10:29   ` Ulrike Fischer
2015-02-17 11:43     ` Jaroslav Hajtmar
2015-02-17 21:10       ` Ulrike Fischer
2015-02-17  9:25 Akira Kakuto
2015-02-17 12:21 Akira Kakuto
2015-02-17 12:58 ` Jaroslav Hajtmar
2015-02-17 13:21 Akira Kakuto
2015-02-17 13:55 Akira Kakuto

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=alpine.LNX.2.03.1502161754460.8175@hzvpu.rqh \
    --to=adityam@umich.edu \
    --cc=hajtmar@gyza.cz \
    --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).