emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: emacs-orgmode@gnu.org
Subject: Re: Export org-mode to .ics (on FTP-Server)
Date: Wed, 11 Apr 2007 11:58:01 +0200	[thread overview]
Message-ID: <87ps6bqlli.fsf@bzg.ath.cx> (raw)
In-Reply-To: <836DB61D-4DD4-4644-861B-12154CF48B66@snapup.net> (phil@snapup.net's message of "Wed\, 11 Apr 2007 10\:24\:16 +0200")

phil <phil@snapup.net> writes:

> QUESTION:
> Is it possibile to upload the .ics file after exporting in one step from
> emacs?

Maybe doing it from Emacs is not as straightforward as doing it with a
simple script.

Here is an example of such a script -- it launches Emacs in batch mode,
takes your-calendar.org, converts it into a .ics file, then upload this
file to a remote host with rsync.

========================================================================
#!/bin/bash

/usr/local/bin/emacs --batch --eval \
"(progn (load-file \"~/elisp/org/org.el\") \
        (load-file \"~/elisp/org/org-install.el\") \
        (load-file \"~/elisp/org-batch-config.el\") \
        (setq org-icalendar-combined-name \"Your Calendar\") \
        (setq org-combined-agenda-icalendar-file \"~/org/cal/your-calendar.ics\") \
        (setq org-agenda-files (quote (\"~/org/cal/your-calendar.org\"))))" \
    -f org-export-icalendar-combine-agenda-files

/usr/bin/rsync -rtv ~/org/cal/your-calendar.ics -e ssh login@host:/home/login/cal/
========================================================================

Regards,

-- 
Bastien

      reply	other threads:[~2007-04-11 10:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11  8:24 Export org-mode to .ics (on FTP-Server) phil
2007-04-11  9:58 ` Bastien [this message]

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=87ps6bqlli.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --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).