From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Adam Hardy Newsgroups: gmane.emacs.help Subject: running emacs in perl script Date: Sun, 08 Feb 2004 13:52:21 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <40263105.1040600@cyberspaceroad.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1076244987 15996 80.91.224.253 (8 Feb 2004 12:56:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 8 Feb 2004 12:56:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 08 13:56:19 2004 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 1ApoTz-0004le-00 for ; Sun, 08 Feb 2004 13:56:19 +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 1ApoSx-0007Xa-Kc for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Feb 2004 07:55:15 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ApoSG-0007TG-NO for help-gnu-emacs@gnu.org; Sun, 08 Feb 2004 07:54:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ApoRj-0007C6-1G for help-gnu-emacs@gnu.org; Sun, 08 Feb 2004 07:54:31 -0500 Original-Received: from [212.227.126.189] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ApoRi-0007Ad-Ef for help-gnu-emacs@gnu.org; Sun, 08 Feb 2004 07:53:58 -0500 Original-Received: from [212.227.126.209] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ApoRg-0006bM-00 for help-gnu-emacs@gnu.org; Sun, 08 Feb 2004 13:53:56 +0100 Original-Received: from [80.128.25.175] (helo=cyberspaceroad.com) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1ApoRg-0003V1-00 for help-gnu-emacs@gnu.org; Sun, 08 Feb 2004 13:53:56 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031021 X-Accept-Language: de Original-To: help-gnu-emacs@gnu.org X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:7be52423742ce504c1b541fa1f258887 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16709 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16709 I've got a perl script which I use for ripping CDs. It gets the CDDB entry off the net, saves the entry in a file and then asks if I want to edit it with this command: print `emacs \"/tmp/xmcd/$files[2]\"`; This launches emacs with the file nicely in x-windows. However I often want to run the script on an old box which runs x so slowly I never bother and do everything on the command line. But on the command line, this command above launches emacs in the background I think. I'm not sure. I never see emacs, the script just sits there with the cursor blinking, hanging below the command line. If I do 'ps -eaf' I see an emacs process. But I can't get to it. It makes no difference if I put the '-nw' flags on the emacs command. Does anybody know what to do? Adam -- GNU Emacs 21.3.1 on Linux 2.4.20 Debian