unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Detecting if the Emacs server is running
@ 2011-03-18  6:11 PJ Weisberg
  2011-03-18  6:47 ` Deniz Dogan
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: PJ Weisberg @ 2011-03-18  6:11 UTC (permalink / raw)
  To: help-gnu-emacs

Is there a way, in GNU/Linux, to detect whether Emacs is running in
server mode from a shell script?

I'd like to write a script that creates a new frame with emacsclient
if the user is already running an emacs server, but just starts up a
regular Emacs instance if he isn't.

-- 

-PJ



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-03-18 20:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2.1300428697.25014.help-gnu-emacs@gnu.org>
2011-03-18  9:43 ` Detecting if the Emacs server is running Pascal J. Bourguignon
2011-03-18 20:46   ` PJ Weisberg
2011-03-18  6:11 PJ Weisberg
2011-03-18  6:47 ` Deniz Dogan
2011-03-18  7:38   ` PJ Weisberg
2011-03-18  9:59     ` PJ Weisberg
2011-03-18  7:18 ` Leo
     [not found] ` <mailman.5.1300430901.25014.help-gnu-emacs@gnu.org>
2011-03-18  8:14   ` Ilya Zakharevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).