~khurshid-alam/milky-moorhen/trunk

« back to all changes in this revision

Viewing changes to settings/config/alarm-sound-notification/sync-cal.sh

  • Committer: Khurshid Alam
  • Date: 2012-05-01 14:48:11 UTC
  • Revision ID: khurshid.alam@linuxmail.org-20120501144811-veau0k35pvv107eh
Initial revision

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/bash
 
2
#Gcaldaemon
 
3
 
 
4
notify-send "Calendar events sync starts" "Starting gcalDaemon, parsing XML feed..." -i /home/sunny/.config/alarm-sound-notification/icalsync.png 
 
5
 
 
6
cp -f /home/sunny/.evolution/calendar/local/system/calendar.ics /home/sunny/.evolution/calendar/local/system/gcalbackup/calendar.ics
 
7
cp -f /home/sunny/.evolution/calendar/local/1310150550.12454.2@sunny-Compaq-610/calendar.ics /home/sunny/.evolution/calendar/local/1310150550.12454.2@sunny-Compaq-610/gcalbackup/calendar.ics
 
8
cp -f /home/sunny/.evolution/calendar/local/1310150569.12454.3@sunny-Compaq-610/calendar.ics /home/sunny/.evolution/calendar/local/1310150569.12454.3@sunny-Compaq-610/gcalbackup/calendar.ics
 
9
 
 
10
 
 
11
 
 
12
cd /usr/local/sbin/GCALDaemon/bin
 
13
./sync-now.sh
 
14
 
 
15
sleep 2s
 
16
 
 
17
 
 
18
#touch -r /home/sunny/.evolution/calendar/local/system/backup/calendar.ics /home/sunny/.evolution/calendar/local/system/calendar.ics 
 
19
#touch -r /home/sunny/.evolution/calendar/local/system/backup/calendar.ics /home/sunny/.evolution/calendar/local/1310150550.12454.2@sunny-Compaq-610/calendar.ics 
 
20
#touch -r /home/sunny/.evolution/calendar/local/system/backup/calendar.ics /home/sunny/.evolution/calendar/local/1310150569.12454.3@sunny-Compaq-610/calendar.ics
 
21
 
 
22
cp -f  /home/sunny/.evolution/calendar/local/system/gcalbackup/calendar.ics /home/sunny/.evolution/calendar/local/system/calendar.ics 
 
23
cp -f  /home/sunny/.evolution/calendar/local/1310150550.12454.2@sunny-Compaq-610/gcalbackup/calendar.ics /home/sunny/.evolution/calendar/local/1310150550.12454.2@sunny-Compaq-610/calendar.ics
 
24
cp -f  /home/sunny/.evolution/calendar/local/1310150569.12454.3@sunny-Compaq-610/gcalbackup/calendar.ics /home/sunny/.evolution/calendar/local/1310150569.12454.3@sunny-Compaq-610/calendar.ics
 
25
 
 
26
notify-send "Calendar sync has finished." "All events are syncronized now." -i /home/sunny/.config/alarm-sound-notification/icalsync.png 
 
27
 
 
28