[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs daemon.. but quietly
From: |
tomas |
Subject: |
Re: emacs daemon.. but quietly |
Date: |
Mon, 22 Mar 2010 19:29:46 +0100 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----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
>
> function serverExists {
> TMPDIR=${TMPDIR-/tmp};
> TMPFILE="${TMPDIR}/ps-output.$$";
>
> ps > ${TMPFILE}
> grep -q 'emacs-X11' ${TMPFILE}
> SERVER_STARTED=$?;
> rm ${TMPFILE}
>
> return $SERVER_STARTED;
> }
>
> if serverExists ; then
> export EMACS_SERVER="emacs already started"
> else
> emacs --daemon --quiet
> export EMACS_SERVER="emacs started here"
> fi
> echo $EMACS_SERVER
>
> 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ás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFLp7caBcgs9XrR2kYRAlwMAJ4sTtAZtUB5stmqKFTdOukbeArPuwCfQ00L
Ro1KfoynRG84RsyVvE0nFPQ=
=NNry
-----END PGP SIGNATURE-----