From: PJ Weisberg <pjweisberg@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Detecting if the Emacs server is running
Date: Thu, 17 Mar 2011 23:11:31 -0700 [thread overview]
Message-ID: <AANLkTikvVdrdS9nVLeqPVptJ9zk6GsWB3ZH2jS1q4y2t@mail.gmail.com> (raw)
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
next reply other threads:[~2011-03-18 6:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 6:11 PJ Weisberg [this message]
2011-03-18 6:47 ` Detecting if the Emacs server is running 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
[not found] <mailman.2.1300428697.25014.help-gnu-emacs@gnu.org>
2011-03-18 9:43 ` Pascal J. Bourguignon
2011-03-18 20:46 ` PJ Weisberg
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=AANLkTikvVdrdS9nVLeqPVptJ9zk6GsWB3ZH2jS1q4y2t@mail.gmail.com \
--to=pjweisberg@gmail.com \
--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.