From mboxrd@z Thu Jan 1 00:00:00 1970 From: Supriya Sawant Subject: Re: how to get "org-version" using emacs batch mode. Date: Wed, 23 Apr 2014 13:23:16 +0530 Message-ID: References: <87k3agd0cq.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149c04e7681d904f7b1067a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcrza-0002XW-Ej for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 03:53:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WcrzZ-0001IY-JE for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 03:53:18 -0400 In-Reply-To: <87k3agd0cq.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --089e0149c04e7681d904f7b1067a Content-Type: text/plain; charset=UTF-8 Is it possible to redirect or get the output of batch mode command in variable. cmd = emacs --batch --eval '(message (org-version))' ouput=cmd print output i.e output contains version no.(output=7.9.3f) On Wed, Apr 23, 2014 at 12:00 PM, Bastien wrote: > Supriya Sawant writes: > > > emacs --batch --eval '(org-version)' > > > > but it doesn't work. It gives me blank result. > > emacs --batch --eval '(message (org-version))' > > HTH, > > -- > Bastien > -- Thanks & Regards, Supriya Pravin Sawant --089e0149c04e7681d904f7b1067a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Is it possible to redirect or get the output of batch mode= command in variable.


cmd =3D emacs --batch --ev= al '(message (org-version))'

ouput=3Dcmd

print output=

i.e output contains version no.(output=3D7.9.3f)


On Wed, Apr 23, 2014 at 12:00 PM, Bastien <bzg@gnu.org>= ; wrote:
Supriya Sawant <sp.sawant14@gmail.com> writes:

> emacs --batch --eval '(org-version)'
>
> but it doesn't work. It gives me blank result.

emacs --batch --eval '(message (org-version))'

HTH,

--
=C2=A0Bastien



--

Thank= s & Regards,
Supriya Pravin Sawant
--089e0149c04e7681d904f7b1067a--