On 18/10/16 08:57, ianseeks wrote:
On Monday, 17 October 2016 20:50:23 BST Bob Williams wrote:
On 17/10/16 17:58, Roger Price wrote:
On Mon, 17 Oct 2016, Bob Williams wrote:
I have a bash script to generate the sig featured below. When run from my user command line it works correctly, but when I run it from my crontab, it fails to get the plasma version.
You didn't show us the line in crontab. Does crontab execute the script as root? Can root get the plasma version?
Roger
Sorry. Here it is.
0 7 * * * bash /home/bob/bin/daily.sh
That's from my user crontab. I'll try putting it in the system crontab.
I put a similar signature script into the plasma startup on login rather than use cron
Yes, I think that's what I'm going to do. Though I can report that adding the line export DISPLAY=:0.0 to my script did make it work in the cron -- Bob Williams System: Linux 4.4.22-1-default Distro: openSUSE 42.2 Beta (x86_64) Desktop: KDE Frameworks: 5.26.0, Qt: 5.6.1 and Plasma: 5.8.0