cron-logo

 

 

i need to sync my owncloud docs and calendar and sussed when you reboot using a dbus cron your allocated dbus number changes on every reboot.. for you user so if you want to sync your owncloud  or other cron jobs .. try this

make a script called synccalendar.sh

and chmod +x

enter this information

#!/bin/sh
# Synchronisation des calendriers syncevolution
export DISPLAY=:0.0
export
export DBUS_SESSION_BUS_ADDRESS=$(ps -u phablet e | grep -Eo ‘dbus-daemon.*address=unix:abstract=/tmp/dbus-[A-Za-z0-9]{10}’ | tail -c35)
syncevolution owncloud
exit 0

then do a crontab -e and add this line

@hourly /home/phablet/Documents/synccalendar.sh

and save this will give you the new allocated dbus for the user on each reboot 🙂

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from a day in the life of wayne ward....

Subscribe now to keep reading and get access to the full archive.

Continue reading