From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: emacs daemon.. but quietly Date: Mon, 22 Mar 2010 19:29:46 +0100 Message-ID: <20100322182946.GA8597@tomas> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1269282393 18152 80.91.229.12 (22 Mar 2010 18:26:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 22 Mar 2010 18:26:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Gary ." Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 22 19:26:27 2010 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.69) (envelope-from ) id 1NtmKY-0000SF-Ct for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Mar 2010 19:26:26 +0100 Original-Received: from localhost ([127.0.0.1]:58500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtmKX-0007KN-JA for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Mar 2010 14:26:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtmKA-0007K8-AK for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 14:26:02 -0400 Original-Received: from [140.186.70.92] (port=46960 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtmK8-0007K0-39 for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 14:26:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NtmK6-0000x3-PM for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 14:26:00 -0400 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104]:44013 helo=www.elogos.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NtmK6-0000wr-KC for help-gnu-emacs@gnu.org; Mon, 22 Mar 2010 14:25:58 -0400 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 2AE4B9004F; Mon, 22 Mar 2010 19:29:46 +0100 (CET) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:72451 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, Mar 05, 2010 at 02:24:44PM +0100, Gary . wrote: > Is there any way to stop emacs, run with --daemon, printing out > details about all of the config files it is loading? At the moment I > see If I understand you correctly, you want to suppress stdout/stderr output of emacs --daemon? You might just redirect that to /dev/null like so: emacs --daemon > /dev/null 2>&1 (or did I misunderstand you completely?) > ("emacs" "--quiet") > Loading charset... > Loading charset...done > (etc.) which is ugly since I want to start the server, when > appropriate, when I start my login shell by doing something like >=20 > function serverExists { > TMPDIR=3D${TMPDIR-/tmp}; > TMPFILE=3D"${TMPDIR}/ps-output.$$"; >=20 > ps > ${TMPFILE} > grep -q 'emacs-X11' ${TMPFILE} > SERVER_STARTED=3D$?; > rm ${TMPFILE} >=20 > return $SERVER_STARTED; > } >=20 > if serverExists ; then > export EMACS_SERVER=3D"emacs already started" > else > emacs --daemon --quiet > export EMACS_SERVER=3D"emacs started here" > fi > echo $EMACS_SERVER >=20 > in my .bashrc. Hm. I don't quite understand this part. Besides, it seems a roundabout way. What are you trying to achieve? Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFLp7caBcgs9XrR2kYRAlwMAJ4sTtAZtUB5stmqKFTdOukbeArPuwCfQ00L Ro1KfoynRG84RsyVvE0nFPQ=3D =3DNNry -----END PGP SIGNATURE-----