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 20:48:35 +0300 Message-ID: <83fv55yvws.fsf@gnu.org> References: <74b79522-cff4-4173-ad1c-178ffdce70fd@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1435945730 15415 80.91.229.3 (3 Jul 2015 17:48:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jul 2015 17:48:50 +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 19:48:41 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 1ZB54r-0005mL-15 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 19:48:41 +0200 Original-Received: from localhost ([::1]:42142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB54p-0005Q0-S3 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jul 2015 13:48:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB54g-0005Pv-KF for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 13:48:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZB54b-0005o4-A8 for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 13:48:30 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:38165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZB54b-0005nh-1n for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 13:48:25 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NQX00G00ALUWR00@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 20:48:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQX00GLXASMTQ40@a-mtaout23.012.net.il> for help-gnu-emacs@gnu.org; Fri, 03 Jul 2015 20:48:23 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 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:105400 Archived-At: > From: Barry Margolin > Date: Fri, 03 Jul 2015 11:07:31 -0400 > > > emacs -batch --eval "(princ \"Hello, world\!\n\")" < /dev/null > foo > > > > I get no crash and the expected message in the file 'foo'. > > > > Anyway, if you see crashes due to lack of a TTY, please report that as > > a bug using "M-x report-emacs-bug". > > That process still has a TTY, it's just not connected to stdin or > stdout. Then I don't understand what you mean by "has a TTY". Please elaborate. > But it's accessible as /dev/tty That's only an issue if Emacs directly access that device. Does it? > and also connected to stderr (you forgot to do 2>&1 to disconnect > stderr). That doesn't change anything, the same is true if I do.