From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.bugs Subject: Re: emacs -nw hangs on redirect Date: Tue, 04 Nov 2003 16:18:00 GMT Organization: Level(3) Communications, Woburn, MA Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067963006 776 80.91.224.253 (4 Nov 2003 16:23:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2003 16:23:26 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 04 17:23:24 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AH3xk-0005Zt-00 for ; Tue, 04 Nov 2003 17:23:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AH3ws-0003ZH-6h for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Nov 2003 11:22:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AH3wP-0003OK-PC for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Nov 2003 11:22:01 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AH3vq-00039V-Hw for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Nov 2003 11:21:57 -0500 Original-Received: from [132.239.1.59] (helo=mailbox7.ucsd.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AH3tw-0002UH-Qk for bug-gnu-emacs@prep.ai.mit.edu; Tue, 04 Nov 2003 11:19:29 -0500 Original-Received: from cc26-01.idc1.level3.com (machine77.Level3.com [209.244.4.106]) by mailbox7.ucsd.edu (8.12.10/8.12.9) with ESMTP id hA4GJ8dS082392 for ; Tue, 4 Nov 2003 08:19:08 -0800 (PST) Original-Received: from cc26-01.idc1.level3.com (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id D1331848E8 for ; Tue, 4 Nov 2003 16:18:12 +0000 (GMT) Original-Received: from f10211-05.adc1.level3.com (mailmgmt.l3.com [10.1.24.134]) by cc26-01.idc1.level3.com (Postfix) with ESMTP id D84AB853F5 for ; Tue, 4 Nov 2003 16:18:01 +0000 (GMT) Original-Received: by f10211-05.adc1.level3.com (8.11.6+Sun/8.11.6) id hA4GI0a09142; Tue, 4 Nov 2003 16:18:00 GMT X-Authentication-Warning: f10211-05.adc1.level3.com: news set sender to planet-newscrap using -f Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.bug Mail-Copies-To: never X-Newsreader: trn 4.0-test72 (19 April 1999) Originator: barmar@genuity.net (Barry Margolin) Original-Lines: 26 Original-NNTP-Posting-Host: 171.78.176.30 Original-X-Trace: news.level3.com 1067962680 171.78.176.30 (Tue, 04 Nov 2003 16:18:00 GMT) Original-NNTP-Posting-Date: Tue, 04 Nov 2003 16:18:00 GMT X-Spamscanner: mailbox7.ucsd.edu (v1.4 Oct 30 2003 22:20:52, 0.0/5.0 2.60) X-MailScanner: PASSED (v1.2.8 80377 hA4GJ8dS082392 mailbox7.ucsd.edu) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:6086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6086 In article , Victor Lesk wrote: >Hi emacs, > >I'm running emacs 21.2.1 on a linux ix86. > >in bash, the command >emacs -nw > out.txt >hangs. > >(the command emacs > out.txt works fine). > >Can you explain why/suggest a workaround? What are you trying to accomplish? Emacs expects its stdin and stdout to be a video terminal or emulator that it can perform cursor control on. It doesn't make much sense to redirect its output to a file. If you want to capture the output of Emacs, run it inside a "script" session. -- Barry Margolin, barry.margolin@level3.com Level(3), Woburn, MA *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups. Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.