From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Feature request/wishlist: allowing external processes to accept input in script mode Date: Wed, 26 Oct 2005 01:52:25 +0200 Message-ID: References: <874q75xk4h.fsf@gnufans.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1130284494 24157 80.91.229.2 (25 Oct 2005 23:54:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2005 23:54:54 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 01:54:50 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUYbY-0000xB-4Y for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 01:53:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUYbW-0002t4-QO for ged-emacs-devel@m.gmane.org; Tue, 25 Oct 2005 19:53:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUYan-0002sF-9O for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:52:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUYak-0002qI-N9 for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:52:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUYak-0002q5-4g for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:52:30 -0400 Original-Received: from [195.135.220.2] (helo=mx1.suse.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EUYak-0005jm-4y for emacs-devel@gnu.org; Tue, 25 Oct 2005 19:52:30 -0400 Original-Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 464B9EBF6; Wed, 26 Oct 2005 01:52:28 +0200 (CEST) Original-To: "D Goel" X-Yow: There's enough money here to buy 5000 cans of Noodle-Roni! In-Reply-To: <874q75xk4h.fsf@gnufans.net> (D. Goel's message of "Tue, 25 Oct 2005 19:16:46 -0400") User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44881 Archived-At: "D Goel" writes: > Now we call the above bash script from an emacs script, in various > ways: > > ---- > #!/usr/local/bin/emacscvs --script > > > (setq a (call-process "y-or-n-p-my" nil t t "Question")) You explicitly tell that input for the process should come from /dev/null= , so this works as expected. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."