[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to run shell command with stream input, to get string output
From: |
tomas |
Subject: |
Re: How to run shell command with stream input, to get string output |
Date: |
Mon, 1 Jul 2019 10:38:33 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Mon, Jul 01, 2019 at 10:17:16AM +0200, Jean Louis wrote:
[...]
> That one runs only shell command, without the
> input.
>
> I am looking to something equivalent to shell
>
> cat | markdown
[...]
Perhaps call-process-region is for you: it passes the current
region as stdin to the invoked process. Cf [1]. If you need
more control (or perhaps an asynchronous process which you can
feed input spoonwise), perhaps [2] is it. But that takes some
"bricolage" :-)
Cheers
[1] Elisp manual 38.3 Creating a Synchronous Process
[2] Elisp manual 38.7 Sending Input to Processes
-- tomás
signature.asc
Description: Digital signature
- Re: How to run shell command with stream input, to get string output, Marcin Borkowski, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/01
- Re: How to run shell command with stream input, to get string output,
tomas <=
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Robert Pluim, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Noam Postavsky, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/01
Re: How to run shell command with stream input, to get string output, Marcin Borkowski, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/01
- Re: How to run shell command with stream input, to get string output, Marcin Borkowski, 2019/07/04
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/04
- Re: How to run shell command with stream input, to get string output, Jean Louis, 2019/07/04