From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: run emacs in batch mode without a tty Date: Fri, 03 Jul 2015 23:14:40 +0300 Message-ID: <837fqhyp5b.fsf@gnu.org> References: <74b79522-cff4-4173-ad1c-178ffdce70fd@googlegroups.com> <91362e27-aad2-4aa8-bfa6-d447881103d1@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435954492 16875 80.91.229.3 (3 Jul 2015 20:14:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 20:14:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 03 22:14:42 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZB7M9-0002yL-M7 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 22:14:41 +0200 Original-Received: from localhost ([::1]:42456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB7M8-0001qQ-Vu for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 16:14:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB7M0-0001qL-2a for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 16:14:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB7Lw-0002aV-Sn for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 16:14:32 -0400 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:33787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB7Lw-0002Zv-KW for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 16:14:28 -0400 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NQX00B00GM2SN00@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 23:05:54 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQX0060YH5UM990@mtaout24.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 23:05:54 +0300 (IDT) In-reply-to: <91362e27-aad2-4aa8-bfa6-d447881103d1@googlegroups.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.180 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105404 Archived-At: > Date: Fri, 3 Jul 2015 10:07:06 -0700 (PDT) > From: Sam Halliday > > > emacs -batch --eval "(princ \"Hello, world\!\n\")" < /dev/null > foo > > Aah, the difference is that you're using `-batch` Excuse me? It was you who asked specifically about the batch mode: > Is it possible to run emacs in batch mode without access to a tty? Is there a way to mock a tty for these purposes? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > and that does allow me to do *some* things in the docker container, but emacs seems to just exit when I start a `process`. The docs don't mention this as a caveat http://www.emacswiki.org/emacs/BatchMode What do you mean by "start a process"? > Is there anything that you can think of that might cause a -batch emacs to exit early? How do you see it exiting early? Please provide the details of what you see, as I have no way of trying this on a system similar to yours.