← Back to team overview

ubuntu-phone team mailing list archive

Re: ownCloud app.

 

Okay it was a little bit harder than that!

Create a bash script in /home/phablet:

#!/bin/sh
export DISPLAY=:0.0
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 contacts
syncevolution owncloud calendar
exit 0


chmod +x /home/phablet/syncevolution.sh
sudo crontab -u phablet -e


0 0,6,12,18 * * * sh /home/phablet/syncevolution.sh >/dev/null 2>&1


*Vincent*
http://influence-pc.fr/

Le 02/07/2015 23:21, Vincent a écrit :
Yes, and you can do that with:
|sudo mount /dev/loop0 / -o remount,rw|

*Vincent*
http://influence-pc.fr/

Le 02/07/2015 20:16, Sam Bull a écrit :
On Thursday, 2 July 2015 17:31:23 BST, Vincent wrote:
I agree with you, but know that crontab is installed on your device and should work as excepted for the automatic side.

No, it requires making the filesystem writable to edit the crontab.





Follow ups

References