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: Robert Pluim
Subject: Re: How to run shell command with stream input, to get string output
Date: Mon, 01 Jul 2019 11:38:16 +0200

>>>>> On Mon, 1 Jul 2019 11:06:23 +0200, Jean Louis <bugs@gnu.support> said:

    Jean> * tomas@tuxteam.de <tomas@tuxteam.de> [2019-07-01 10:39]:
    >> 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

    Jean> Thank you, I found this one, now just to figure
    Jean> out how to find process name.

Another option would be using start-process, process-send-region,
and process-send-eof (all described in the manual).

Robert



reply via email to

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