help-gnu-emacs
[Top][All Lists]
Advanced

[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

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]