all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: run emacs in batch mode without a tty
Date: Sat, 04 Jul 2015 10:32:48 +0300	[thread overview]
Message-ID: <833814z8bj.fsf@gnu.org> (raw)
In-Reply-To: <86k2ugcsxr.fsf@dod.no>

> From: Steinar Bang <sb@dod.no>
> Date: Sat, 04 Jul 2015 08:56:00 +0200
> 
> >>>>> Eli Zaretskii <eliz@gnu.org>:
> 
> > 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?

The original message talked about crashes.  It's easy to know I don't
get that ;-)

As for what you ask, I don't understand the question.  What do you
mean by "a tty as seen from the startup shell", and why is that
relevant?  Once Emacs is invoked, why should it care about the shell
that invoked it?

> (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?)

They might, but (a) I tried my example both on GNU/Linux and on
MS-Windows, and (b) I explicitly asked for evidence that a tty device
needs to exist for Emacs to start in batch mode, because if such a
precondition exists, it must be a bug of some kind.  Meanwhile, the OP
says that "emacs -batch" works on their system, which apparently lacks
a tty device, and that is yet another evidence that a tty device is
not needed in batch mode, as I'd expect.



  reply	other threads:[~2015-07-04  7:32 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-03  9:14 run emacs in batch mode without a tty Sam Halliday
2015-07-03 10:26 ` tomas
     [not found] ` <mailman.6225.1435919180.904.help-gnu-emacs@gnu.org>
2015-07-03 10:28   ` Sam Halliday
2015-07-03 10:45     ` tomas
     [not found]     ` <mailman.6226.1435920329.904.help-gnu-emacs@gnu.org>
2015-07-03 13:27       ` Sam Halliday
2015-07-04  8:30         ` tomas
2015-07-03 12:00 ` Eli Zaretskii
     [not found] ` <mailman.6230.1435924859.904.help-gnu-emacs@gnu.org>
2015-07-03 13:26   ` Sam Halliday
2015-07-03 13:51     ` Eli Zaretskii
2015-07-04  6:56       ` Steinar Bang
2015-07-04  7:32         ` Eli Zaretskii [this message]
     [not found]     ` <mailman.6240.1435931463.904.help-gnu-emacs@gnu.org>
2015-07-03 15:07       ` Barry Margolin
2015-07-03 17:48         ` Eli Zaretskii
2015-07-03 20:13         ` Emanuel Berg
2015-07-03 15:42       ` Sam Halliday
2015-07-03 16:29         ` Sam Halliday
2015-07-03 17:51         ` Eli Zaretskii
2015-07-03 17:07       ` Sam Halliday
2015-07-03 20:14         ` Eli Zaretskii
     [not found]         ` <mailman.6254.1435954474.904.help-gnu-emacs@gnu.org>
2015-07-03 20:43           ` Sam Halliday
2015-07-03 21:25             ` Sam Halliday
2015-07-03 21:52               ` Sam Halliday
2015-07-03 22:01                 ` Sam Halliday
2015-07-04  7:42                   ` Eli Zaretskii
2015-07-03 22:55               ` Barry Margolin
2015-07-03 23:56                 ` Sam Halliday
2015-07-04  7:37                 ` Eli Zaretskii
2015-07-04  7:44               ` Eli Zaretskii
2015-07-04  7:45             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=833814z8bj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.