From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.devel Subject: Re: Feature request/wishlist: allowing external processes to accept input in script mode Date: Wed, 26 Oct 2005 09:54:50 -0600 Message-ID: References: <874q75xk4h.fsf@gnufans.net> <87wtk0wck6.fsf@gnufans.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130343253 3270 80.91.229.2 (26 Oct 2005 16:14:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2005 16:14:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 26 18:14:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EUnqE-00089d-Fj for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 18:09:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUnqD-0007aQ-O8 for ged-emacs-devel@m.gmane.org; Wed, 26 Oct 2005 12:09:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EUnoC-00071I-CO for emacs-devel@gnu.org; Wed, 26 Oct 2005 12:07:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EUnoA-00070d-KF for emacs-devel@gnu.org; Wed, 26 Oct 2005 12:07:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EUnoA-00070Y-A8 for emacs-devel@gnu.org; Wed, 26 Oct 2005 12:07:22 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EUnoA-0006Mu-9b for emacs-devel@gnu.org; Wed, 26 Oct 2005 12:07:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EUnhg-0003zY-BF for emacs-devel@gnu.org; Wed, 26 Oct 2005 18:00:40 +0200 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2005 18:00:40 +0200 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Oct 2005 18:00:40 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 32 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en In-Reply-To: <87wtk0wck6.fsf@gnufans.net> 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:44903 Archived-At: D Goel wrote: > > Andreas Schwab writes: > > >>"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. > > > I certainly agree with that. I supplied nil for infile above. > My question is: what argument can I supply as infile so that when the > external process expects an input, it actually accepts input from > stdin? > > As far as I can tell, infile can only be a file, or nil. Did you try "/dev/stdin" or "/dev/fd/0"? -- Kevin Rodgers