From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gregoryj@hotpop.com (Gregory J.) Newsgroups: gmane.emacs.help Subject: Opening stdin or pipe Date: 24 Feb 2003 21:43:08 -0800 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1046152026 23858 80.91.224.249 (25 Feb 2003 05:47:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 05:47:06 +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 18nXvk-0006Cg-00 for ; Tue, 25 Feb 2003 06:47:05 +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 18nXuE-0003T4-08 for gnu-help-gnu-emacs@m.gmane.org; Tue, 25 Feb 2003 00:45:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 64.32.235.228 Original-X-Trace: posting.google.com 1046151788 7699 127.0.0.1 (25 Feb 2003 05:43:08 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 25 Feb 2003 05:43:08 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:110586 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:7088 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7088 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'd be happy enough to use a named pipe like this, though: mkfifo myfifo whatever-command > myfifo & emacs myfifo It seems the first method is simply not supported (Error: "Option `-' is ambiguous"). I would have expected the second method to work, but I get this error: "File exists but cannot be read." I searched the USENET archive and found this command suggested: emacs /dev/stdin (and /dev/stdin does exist under NetBSD), but I get the same error, "File exists but cannot be read." A workaround is to run: mkfifo myfifo whatever-command > myfifo & emacs and then within Emacs create a buffer and run "cat myfifo" via shell-command (C-u M-!), but this is inconvenient. Is there any way to accomplish what I described?