From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.help Subject: Re: How to run shell command with stream input, to get string output Date: Mon, 01 Jul 2019 11:38:16 +0200 Message-ID: References: <20190630223205.GA19895@protected.rcdrun.com> <875zomw7cf.fsf@mbork.pl> <20190701081716.GA11749@protected.rcdrun.com> <20190701083833.GA25877@tuxteam.de> <20190701090623.GD11749@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227927"; mail-complaints-to="usenet@blaine.gmane.org" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 01 11:39:07 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hhsmB-000xD9-K3 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jul 2019 11:39:07 +0200 Original-Received: from localhost ([::1]:56492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhsmA-0008Dt-K0 for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Jul 2019 05:39:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51100) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hhslR-000891-PT for help-gnu-emacs@gnu.org; Mon, 01 Jul 2019 05:38:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hhslQ-0006Sp-R5 for help-gnu-emacs@gnu.org; Mon, 01 Jul 2019 05:38:21 -0400 Original-Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]:55503) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hhslQ-0006Qs-Js for help-gnu-emacs@gnu.org; Mon, 01 Jul 2019 05:38:20 -0400 Original-Received: by mail-wm1-x329.google.com with SMTP id a15so15107416wmj.5 for ; Mon, 01 Jul 2019 02:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=hyZ1wcrVUXiI1/uzM60bYb2NZ/rf7Uei4MlBMlyCvK8=; b=Kb1MuKv6AOrS3yf9adzMTYSYRg+fJtmvl8o2rONnkSF4E67DVZnTPAWyjidPNEUE7F aIGHsDQ41TiQAXP4zDc0t8UyWTtKt5K2rHlHu0DBuGv1PbTTvxXyIGAw40Rez6RatFx0 S3ISL3JQRD4ypmQVapvrYDTOz6LO607VbUFqdtRyQtjFZXkdyLCaCOruBOw4NddjIsWc x0efEcQYhYaF4MMY3SUH9AjCNMgbaTiL8dLKAHOx231ksu4/bDhzZlEIOBNbn5miUYRJ 3qhnOVxTPbzfvOHo3U7FB5TyGAVH2hpkl8dDaa57vZxbIj7hhRsI3FUjafBW7WwZY3M6 02UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=hyZ1wcrVUXiI1/uzM60bYb2NZ/rf7Uei4MlBMlyCvK8=; b=WVUZYSj0SUqddayMhvg9nt7a9wvmfctW1n3SztxrG2Op1RQtVxPo4t7wwdxxQRhDlB XnFr5RXfwGmopE7uC9YiYbI35wMfTnozLjIywMueXwnRj3KwteXaipQbDeWVkcRvqTr8 AjKZI0PSb80RUXpbNj4HfJv3T9j4r1jbMla3ObDUoEpOwcOqQUZqE6nj/MNaHYOULBKE vgpiwNsathAskKtJXUNGadZxkWcUHfZ1Rc+ukcCUgsdZEtkCkjCyjSWx2VJCMUtvN1wQ PqlVdAhBRIzz79kiWQ1X4X/hiVkHOcPH4DMcQcL92yfAkWkJRe7pMWSvWOADpysmOv7F Xcqw== X-Gm-Message-State: APjAAAVqK/fr1AmG0h/KsQTr+KtQKyvvQ3WkCYlo7E2WrBvQIMU5GdfD 4YRndAB4IXG1t+ZAKtp2mD9qEtee0e0= X-Google-Smtp-Source: APXvYqzJvU3qKCEU7W/0Ozl/7q1rGqd41cAd+12JXEmHckAa9aFry06tbfUu5lIXvZEZQNPQPowChg== X-Received: by 2002:a1c:67c3:: with SMTP id b186mr15562412wmc.34.1561973898144; Mon, 01 Jul 2019 02:38:18 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id z126sm17856160wmb.32.2019.07.01.02.38.16 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 01 Jul 2019 02:38:17 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <20190701090623.GD11749@protected.rcdrun.com> (Jean Louis's message of "Mon, 1 Jul 2019 11:06:23 +0200") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::329 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121085 Archived-At: >>>>> On Mon, 1 Jul 2019 11:06:23 +0200, Jean Louis said: Jean> * 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" :-) >>=20 >> Cheers >>=20 >> [1] Elisp manual 38.3 Creating a Synchronous Process >> [2] Elisp manual 38.7 Sending Input to Processes >> -- tom=C3=A1s 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