Johnny [Life & Code]

Semper Exploro!

Publishing ‘Tasks’ in Evolution.

with 3 comments

Evolution

Well. .. why would anyone want to publish their tasks?

  • You are working in team and you want everybody to know what you r doing.
  • Status reports ?

Anyway here goes …

Your Evolution tasks are stored in ICAL format under $HOME/.evolution/tasks/local/

The default task list will be under $HOME/.evolution/tasks/local/system/task.ics

If you have more than one task list then you’ll find something like this.. .

$HOME/.evolution/tasks/local/1155287601.3720.2@helios/task.ics
$HOME/.evolution/tasks/local/1155787868.6980.0@helios/tasks.ics
$HOME/.evolution/tasks/local/1156996239.5441.0@helios/tasks.ics

I’m not sure why they have been named like this.. You need to find which tasks.ics = task list.

Thatz all we want to know.. Now itz time for writing some scripts to copy tasks.ics to your webserver. I want to publish this on a machine that runs 24/7. So we need to SCP this task.ics to the server. this can be done by a simple one line script and putit as a cronjob for syncing the changes automtically. something like

scp /home/jjohnny/.evolution/tasks/local/1155787868.6980.0@helios/tasks.ics johnny@164.99.168.107:~/public_html/

As you can see SCP is very simple to use. But it prompts for a password everytime you copy the file. Not good. This can be overriden by createing a ssh-key. Herez how to do it :

  1. Create a local ssh-key by using “ssh-keygen”. It’ll ask for passphrase (u could ignore it). Once the keys are generated you’ll have a public key and a private key. Public key will be in $HOME/.ssh/id_rsa.pub
  2. Copy id_rsa.pub to the server. “scp $HOME/.ssh/id_rsa.pub myuser@myserver:~/
  3. Now log into ur server : “ssh -X myser@myserver”
  4. You should be able to find the public key (id_rsa.pub).
  5. Now “cat id_rsa.pub ~/.ssh/authorized_keys”

Once that done you dont have to enter your password when u scp/ssh to the server. Now letz put the ‘one line’ script on a cronjob every five minutes. Now you evolution tasks are published and your team always updated.

Note : You may have to improve the script based on your needs. If your network is not reachable , cron will send a mail
to you complaining.
Advertisements

Written by Johnny

September 9, 2006 at 6:40 am

3 Responses

Subscribe to comments with RSS.

  1. nice πŸ™‚ And why don you enhance the publishing plugin to support tasks too, u should be able to do it easily πŸ˜‰

    chenthill

    September 11, 2006 at 4:49 am

  2. ah .. nice idea .. how did i miss this !! … i’ll look into it .. πŸ™‚

    Johnny Jacob

    September 11, 2006 at 7:34 am

  3. Excellent! Now I can sync my tasklist to my iPod aloung with my calendars! Great tip!

    Arthur

    March 10, 2007 at 6:09 am


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: