From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: Opening stdin or pipe Date: Tue, 25 Feb 2003 09:03:28 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84of5023e7.fsf@lucy.is.informatik.uni-duisburg.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046160394 12281 80.91.224.249 (25 Feb 2003 08:06:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 08:06:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18na6g-0003Bn-00 for ; Tue, 25 Feb 2003 09:06:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18na5X-0003wl-05 for gnu-help-gnu-emacs@m.gmane.org; Tue, 25 Feb 2003 03:05:19 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 16 Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1046160269 57046930 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:MCaXPcljn1tRQHglJgrk72Umso0= Original-Xref: shelby.stanford.edu gnu.emacs.help:110592 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7094 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7094 gregoryj@hotpop.com (Gregory J.) writes: > I want to be able to pipe data into an Emacs buffer (a new one in a > new Emacs session would be fine). Preferably, I'd use a normal shell > pipeline something like this: > > whatever-command | emacs - I think it's best to do it the other way round: from within Emacs, start whatever-command and read its output. You can start a process synchronously with call-process. Or you can start it asynchronously via start-process. -- A preposition is not a good thing to end a sentence with.