[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Export org-mode to .ics (on FTP-Server)
From: |
Bastien |
Subject: |
Re: [Orgmode] Export org-mode to .ics (on FTP-Server) |
Date: |
Wed, 11 Apr 2007 11:58:01 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) |
phil <address@hidden> 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
address@hidden:/home/login/cal/
========================================================================
Regards,
--
Bastien