Active Topics

 



Notices


Reply
Thread Tools
Posts: 145 | Thanked: 32 times | Joined on Dec 2007
#1
Hi all. I want to import my desktop
calendar (call it std.ics) to my n810
automatically via a cronjob.

No problem getting the calendar to the
n810.

But although this command works from
the terminal:

gpe-calendar -c "My Calendar" -i std.ics

it won't work from cron.

My cron line is this:

30 10 * * * /usr/bin/gpe-calendar -c "My Calendar" -i std.ics

It also fails if I call a script in cron

No errors are reported and cron reports that the
job has run ...

I'd really prefer not to have to manually import.

Any advice appreciated. TIA
 
Posts: 162 | Thanked: 351 times | Joined on Apr 2006 @ Cotswolds, UK
#2
I haven't tried this. However it might be that cron is not setting up the environment (DBUS, etc) that gpe-calendar expects. You could try using run-standalone.sh to run it. I.e.

Code:
30 10 * * * /usr/bin/run-standalone.sh /usr/bin/gpe-calendar -c "My Calendar" -i std.ics
If that doesn't work, create a short shell script to run gpe-calendar and redirect standard output and standard error to a file in the /tmp directory so you can see if it is producing any errors. For example:

Code:
#!/bin/sh
/usr/bin/gpe-calendar -c "My Calendar" -i std.ics >/tmp/gpe-calendar.log 2>&1
Graham
 
Posts: 145 | Thanked: 32 times | Joined on Dec 2007
#3
that run-standalone thing did the trick!

many thanks - it's really nice to have my
calendar automatically synced every
morning
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:53.