View source for PisiAutosync

From Openmoko

Jump to: navigation, search

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in the group: Administrators.
  • You must confirm your email address before editing pages. Please set and validate your email address through your user preferences.

You can view and copy the source of this page:

Return to PisiAutosync.

Personal tools

Host side

ICS

#!/bin/bash
echo "Syncing ICS data"
ssh root@192.168.0.202 pisi ncIcs pimlicodates &
echo "PISI command deployed"
sleep 10
cat /home/leviathan/.kde4/share/apps/korganizer/std.ics | nc 192.168.0.202 1234 -q 0
echo "Sending file"
sleep 10
nc -q 0 -l -p 1235 > /home/leviathan/.kde4/share/apps/korganizer/std.ics 
echo "Recieved file"

VCF

#!/bin/bash
echo "Syncing VCF data"
ssh root@192.168.0.202 pisi ncVcf opimd &
echo "PISI command deployed"
sleep 10
cat /home/leviathan/.kde4/share/apps/akonadi_vcard_resource_2/single.vcf | nc 192.168.0.202 1234 -q 0
echo "Sending file"
sleep 10
nc -q 0 -l -p 1235 > /home/leviathan/.kde4/share/apps/akonadi_vcard_resource_2/single.vcf
echo "Recieved file"