all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to get "org-version" using emacs batch mode.
@ 2014-04-23  6:08 Supriya Sawant
  2014-04-23  6:30 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Supriya Sawant @ 2014-04-23  6:08 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

How can I get the org-version on my command line?

I think using batch mode it is possible.

I tried :

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


but it doesn't work. It gives me blank result.


-- 

Thanks & Regards,
Supriya Pravin Sawant

[-- Attachment #2: Type: text/html, Size: 447 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to get "org-version" using emacs batch mode.
  2014-04-23  6:08 how to get "org-version" using emacs batch mode Supriya Sawant
@ 2014-04-23  6:30 ` Bastien
  2014-04-23  7:53   ` Supriya Sawant
  0 siblings, 1 reply; 4+ messages in thread
From: Bastien @ 2014-04-23  6:30 UTC (permalink / raw)
  To: Supriya Sawant; +Cc: emacs-orgmode

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,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to get "org-version" using emacs batch mode.
  2014-04-23  6:30 ` Bastien
@ 2014-04-23  7:53   ` Supriya Sawant
  2014-04-23  8:11     ` Nicolas Richard
  0 siblings, 1 reply; 4+ messages in thread
From: Supriya Sawant @ 2014-04-23  7:53 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 549 bytes --]

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 <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,
>
> --
>  Bastien
>



-- 

Thanks & Regards,
Supriya Pravin Sawant

[-- Attachment #2: Type: text/html, Size: 1303 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: how to get "org-version" using emacs batch mode.
  2014-04-23  7:53   ` Supriya Sawant
@ 2014-04-23  8:11     ` Nicolas Richard
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Richard @ 2014-04-23  8:11 UTC (permalink / raw)
  To: Supriya Sawant; +Cc: Bastien, emacs-orgmode

Supriya Sawant <sp.sawant14@gmail.com> writes:

> Is it possible to redirect or get the output of batch mode command in
> variable.

Assuming you use bash :

$ MYOUTPUT=$(emacs --batch --eval '(princ (org-version))')
$ echo $MYOUTPUT
8.2.5c

-- 
Nico.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-23  8:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-23  6:08 how to get "org-version" using emacs batch mode Supriya Sawant
2014-04-23  6:30 ` Bastien
2014-04-23  7:53   ` Supriya Sawant
2014-04-23  8:11     ` Nicolas Richard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.