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

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

Re: Detecting if the Emacs server is running


From: Leo
Subject: Re: Detecting if the Emacs server is running
Date: Fri, 18 Mar 2011 15:18:04 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (Mac OS X 10.6.6)

On 2011-03-18 14:11 +0800, PJ Weisberg wrote:
> 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.

emacsclient option:

-a, --alternate-editor=EDITOR
    Editor to fallback to if server is not running

-- 
Oracle is the new evil




reply via email to

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