From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pagod Newsgroups: gmane.emacs.help Subject: redirect stdout to emacs scratch Date: Mon, 8 Dec 2008 00:55:37 -0800 (PST) Message-ID: <20890718.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1228741512 22252 80.91.229.12 (8 Dec 2008 13:05:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Dec 2008 13:05:12 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 08 14:06:18 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L9fnT-0006NF-7F for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 14:05:24 +0100 Original-Received: from localhost ([127.0.0.1]:44380 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9fmI-0006sv-3W for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Dec 2008 08:03:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L9bu6-0002l5-Bm for help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 03:55:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L9bu4-0002jv-B8 for Help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 03:55:45 -0500 Original-Received: from [199.232.76.173] (port=35145 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L9bu4-0002js-6n for Help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 03:55:44 -0500 Original-Received: from kuber.nabble.com ([216.139.236.158]:42031) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L9bu3-0004vE-EO for Help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 03:55:43 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1L9btx-0002VR-SZ for Help-gnu-emacs@gnu.org; Mon, 08 Dec 2008 00:55:37 -0800 X-Nabble-From: dvergnaud@yahoo.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Mon, 08 Dec 2008 08:03:34 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60454 Archived-At: hi everyone! this is probably a very easy question (there has to be a way!), but i haven't been able to find the answer, so i'm turning to this forum, hoping someone can give me a hint! what i want to do is very simple: i want to be able to redirect the stdout of any program on the command line into emacs' scratch buffer -- the way it works with less or joe or whatever. i want to do it with emacs because i'm used to using it and i need syntax coloring, but when i try it i get the message "standard input is not a tty". then what is it? the way i've tried it is quite the usual way: pagod> echo "hello, world" | emacs emacs: standard input is not a tty my emacs is aliased to "emacs -nw" because i'm in a terminal, so the option is assumed by default anyway. i'm using the no-window version of emacs because i run it from within an ssh session running zsh on a linux server, connecting using putty from a windows workstation. emacs version is 22.2.1, running in a SuSE 11.0. it'd be great if someone could help me do that! thx a lot David -- View this message in context: http://www.nabble.com/redirect-stdout-to-emacs-scratch-tp20890718p20890718.html Sent from the Emacs - Help mailing list archive at Nabble.com.