
22 Dec
2016
22 Dec
'16
8:13 a.m.
On 22/12/16 18:57, Morrie Wyatt via luv-main wrote:
Or add "> /tmp/scap.debug 2>&1" to the end of your crontab line to capture any outout and error messages.
I captured the error output and got:
No protocol specified giblib error: Can't open X display. It *is* running, yeah?
This is what scap does: #!/bin/sh DISPLAY=:0 /usr/bin/scrot 'scap-%Y-%m-%d-%H:%M.jpg' -q 70 -e 'mv $f /home/dz/shots/; chown dz.dz /home/dz/shots/$f' > /tmp/scap.debug 2>&1 Yes it's a screen capture script. Am I setting DISPLAY properly? Thanks David