From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Export org-mode to .ics (on FTP-Server) Date: Wed, 11 Apr 2007 11:58:01 +0200 Message-ID: <87ps6bqlli.fsf@bzg.ath.cx> References: <836DB61D-4DD4-4644-861B-12154CF48B66@snapup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbZec-0005R7-RW for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 06:02:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbZea-0005Qt-8T for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 06:02:17 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbZeZ-0005Qo-SO for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 06:02:15 -0400 Received: from ug-out-1314.google.com ([66.249.92.174]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HbZaX-0004mj-8j for emacs-orgmode@gnu.org; Wed, 11 Apr 2007 05:58:05 -0400 Received: by ug-out-1314.google.com with SMTP id j3so82251ugf for ; Wed, 11 Apr 2007 02:58:04 -0700 (PDT) In-Reply-To: <836DB61D-4DD4-4644-861B-12154CF48B66@snapup.net> (phil@snapup.net's message of "Wed\, 11 Apr 2007 10\:24\:16 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org phil 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