OpenOffice automatic open with Cron
Posted: Thu Apr 14, 2016 7:09 pm
I have an ubuntu installation (fresh) with a fresh install of OpenOffice.
I've created a spreadsheet in Calc that does some processing every evening.
So I'm trying to open the file every evening at 12:30
So I created a script that contains the following:
soffice --calc --norestore /home/user/Dropbox/Calculator/Updater.ods
and i opened crontab
sudo crontab -e
and added the following lines
30 01 * * * /home/user/Dropbox/updaterscript.sh
30 00 * * * export DISPLAY=:0 && /home/user/Dropbox/updaterscript.sh
If i go into the directory and run the scipt, Calc opens and does exactly what it's supposed to do.
When cron time passes nothing happens for either activity. (Also tried as user as opposed to as root)
I should note, security is not an issue.
I've created a spreadsheet in Calc that does some processing every evening.
So I'm trying to open the file every evening at 12:30
So I created a script that contains the following:
soffice --calc --norestore /home/user/Dropbox/Calculator/Updater.ods
and i opened crontab
sudo crontab -e
and added the following lines
30 01 * * * /home/user/Dropbox/updaterscript.sh
30 00 * * * export DISPLAY=:0 && /home/user/Dropbox/updaterscript.sh
If i go into the directory and run the scipt, Calc opens and does exactly what it's supposed to do.
When cron time passes nothing happens for either activity. (Also tried as user as opposed to as root)
I should note, security is not an issue.