[O] how to get org-version using emacs batch mode.
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
Re: [O] how to get org-version using emacs batch mode.
Supriya Sawant sp.sawan...@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
Re: [O] how to get org-version using emacs batch mode.
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 b...@gnu.org wrote: Supriya Sawant sp.sawan...@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
Re: [O] how to get org-version using emacs batch mode.
Supriya Sawant sp.sawan...@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.