emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Wiskey 5 Alpha <wiskey5alpha@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Specify file name on commandline in batch export
Date: Mon, 15 Apr 2013 00:46:57 -0400	[thread overview]
Message-ID: <CAE89rnxN5r25UqWMw80=Ew20ixw0nJ4zYWW03jM6stqMQAypRg@mail.gmail.com> (raw)

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

Hello all,
   I am using org from 'org-plus-contrib-20130121' on emacs 24.1

What I would like to do is export an org-mode file to odt format from the
commandline , but specify an 'output file name' .  I currently call the
export process like so
#+BEGIN_SRC sh
  emacs --batch --load=org.el --visit ${SRC} --funcall=org-export-as-odt
#+END_SRC

this works well for exporting, but it will only output the file to the
directory where the original org file is, and it will be named <orgfile
basename>.odt

Is there anyway to specify the output directory and filename at the time
that I call the function ?

thank you.

-Tim

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

             reply	other threads:[~2013-04-15  4:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15  4:46 Wiskey 5 Alpha [this message]
2013-04-15 15:41 ` Specify file name on commandline in batch export Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAE89rnxN5r25UqWMw80=Ew20ixw0nJ4zYWW03jM6stqMQAypRg@mail.gmail.com' \
    --to=wiskey5alpha@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).