From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: run emacs in batch mode without a tty Date: Sat, 04 Jul 2015 08:56:00 +0200 Message-ID: <86k2ugcsxr.fsf@dod.no> References: <74b79522-cff4-4173-ad1c-178ffdce70fd@googlegroups.com> <83k2uhz6wq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435992994 14679 80.91.229.3 (4 Jul 2015 06:56:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Jul 2015 06:56:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 04 08:56:28 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 1ZBHND-0006eR-7h for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 08:56:27 +0200 Original-Received: from localhost ([::1]:43476 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBHNC-0001PV-FN for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jul 2015 02:56:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBHN1-0001PQ-NN for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 02:56:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZBHMy-00076g-I2 for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 02:56:15 -0400 Original-Received: from rainey.bang.priv.no ([212.110.185.190]:33558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZBHMy-00076I-CD for help-gnu-emacs@gnu.org; Sat, 04 Jul 2015 02:56:12 -0400 In-Reply-To: <83k2uhz6wq.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 03 Jul 2015 16:51:01 +0300") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (windows-nt) X-SA-Exim-Connect-IP: 84.208.248.210 X-SA-Exim-Rcpt-To: too long (recipient list exceeded maximum allowed size of 8 bytes) X-SA-Exim-Mail-From: sb@dod.no X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:57:07 +0000) X-SA-Exim-Scanned: Yes (on rainey.bang.priv.no) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.110.185.190 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:105418 Archived-At: >>>>> Eli Zaretskii : > It does? It doesn't for me: > emacs -batch --eval "(princ \"Hello, world\!\n\")" < /dev/null > foo > I get no crash and the expected message in the file 'foo'. >From the example above, how do you know that emacs doesn't require a tty as seen from the startup shell, just to start up and run in batch? (It's a real question, not a rethorical one. I'm curious. I guess the tty requirement might differ, depending on the OS? Different for GNU/linux (and other unixoid systems) and Win32?)