help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: run emacs in batch mode without a tty


From: Eli Zaretskii
Subject: Re: run emacs in batch mode without a tty
Date: Fri, 03 Jul 2015 20:48:35 +0300

> From: Barry Margolin <barmar@alum.mit.edu>
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]