From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emilio Lopes Newsgroups: gmane.emacs.help Subject: Re: Detecting active server from the shell Date: Wed, 15 Aug 2007 11:23:34 +0200 Organization: The Church of Emacs Message-ID: <1izm0tcfs9.fsf@freenet.de> References: <1187128785.757502.132420@d55g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1187171229 12578 80.91.229.12 (15 Aug 2007 09:47:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2007 09:47:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 11:47:07 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ILFSz-00076k-1N for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 11:47:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILFSx-0002iL-CU for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Aug 2007 05:47:03 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!news.freenet.de!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Emacs Gnus Cancel-Lock: sha1:eToLuZAwnk46sIMFAoSw5wffbHc= Original-Lines: 13 Original-NNTP-Posting-Host: a1428727.news.freenet.de Original-X-Trace: DXC=PO5; I=ji19jVab9KEibQEfKZSdekToV0b5AOF8UNnN1kHlG_>c76^_ePjjUgB7Wk2`RQWJ7OkFZPm Original-X-Complaints-To: abuse@freenet.de Original-Xref: shelby.stanford.edu gnu.emacs.help:150982 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:46555 Archived-At: adrian@cam cornell edu writes: > How can I tell if there is an active server? You can ask the server to evaluate "t" and see if you get the expected answer. Or test for the exit code of the client. % emacsclient --eval t t -- Emílio C. Lopes Munich, Germany