From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.help Subject: Re: How to pipe text or load a file directly into mail-mode? Date: Thu, 04 May 2006 18:43:05 +0200 Message-ID: References: <86vesme7tk.fsf@gothmog.pc> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146764437 3951 80.91.229.2 (4 May 2006 17:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 May 2006 17:40:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 04 19:40:36 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbhoY-0007BI-81 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 19:40:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbhoX-00036D-OI for geh-help-gnu-emacs@m.gmane.org; Thu, 04 May 2006 13:40:33 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.lang.perl.misc,comp.emacs Original-Lines: 23 Original-X-Trace: individual.net B2TWmNgLSrZ30PKnfZNIzwzTexm1VlOy6Py+AnyVKfKumaYLo= User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chestnut, linux) Cancel-Lock: sha1:Tf9Mjoj20AIqnJauPtc0XWb9qm4= Original-Xref: shelby.stanford.edu gnu.emacs.help:139197 comp.lang.perl.misc:582263 comp.emacs:92100 Original-To: help-gnu-emacs@gnu.org 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:34822 Archived-At: * Adam Funk | ... but I'm having problems with the fact that the Perl program | reads STDIN, processes it and stores the results in a temp file. | When the Perl program gets to this line: | | my $status = system('emacs', '-nw', $temp_file, '-f mail-mode'); | | Emacs produces this error: | | standard input is not a tty | | and doesn't run. Well, via '-nw' you tell emacs to use the tty as input, but the tty is already used by perl. Do you really need '-nw'? If you really need -nw, you could try something along the lines of system("emacs -nw $tempfile -f mail-mode