From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: run emacs in batch mode without a tty Date: Fri, 3 Jul 2015 09:29:41 -0700 (PDT) Message-ID: <78af20fc-b902-4ffd-a533-ad8f0c091ce9@googlegroups.com> References: <74b79522-cff4-4173-ad1c-178ffdce70fd@googlegroups.com> <12363324-2e30-4986-be3b-bc78aeb005a1@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1435941020 7551 80.91.229.3 (3 Jul 2015 16:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 16:30:20 +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 18:30:20 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 1ZB3r0-0000dv-O4 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 18:30:18 +0200 Original-Received: from localhost ([::1]:41902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB3r0-0001qm-4s for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 12:30:18 -0400 X-Received: by 10.129.109.196 with SMTP id i187mr49308647ywc.41.1435940981880; Fri, 03 Jul 2015 09:29:41 -0700 (PDT) X-Received: by 10.140.48.11 with SMTP id n11mr482804qga.35.1435940981863; Fri, 03 Jul 2015 09:29:41 -0700 (PDT) Original-Path: usenet.stanford.edu!s91no784573qgd.1!news-out.google.com!4ni37749qgh.1!nntp.google.com!t90no784775qga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <12363324-2e30-4986-be3b-bc78aeb005a1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Fri, 03 Jul 2015 16:29:41 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:213110 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:105397 Archived-At: On Friday, 3 July 2015 16:42:39 UTC+1, Sam Halliday wrote: > On Friday, 3 July 2015 14:51:05 UTC+1, Eli Zaretskii wrote: > > > Date: Fri, 3 Jul 2015 06:26:37 -0700 (PDT) > > > From: Sam Halliday > > > > > > Emacs won't run without one. It just crashes. > > > > It does? It doesn't for me: > > > > emacs -batch --eval "(princ \"Hello, world\!\n\")" < /dev/null > foo > > Are you running this command in an environment where there is no /dev/[pt]ty* ? BTW, I created a little example of running your script in a docker instance that doesn't have a /dev/[pt]ty* https://github.com/fommil/drone-tests/blob/master/.drone.yml and that seems to be working! I'll investigate further why my tests seem to need a tty.