On Thu, 28 Nov 2019 00:06:33 -0500, <[email protected]> wrote:

I would liek to set a cron job that captures a shot of my whole screen.
I have this script in cron.hourly, but it doesn't work.
#!/bin/bash
date=$((date '+%H%M%S))
import -window root /home/user/$date.png

If I run
$ import -window root /path/to/folder/screen.png
as a user in dom0, then it works fine.
Any suggestions? I think it has something to do with root not being able to
access the full screen???
Thanks so much for any help,
Arild

Try replacing the command in the cron script, which runs as root with ...
su --login user -c "import -window root /home/user/$date.png"

Regards, Dave Hodgins

--
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/op.0byd8klpn7mcit%40hodgins.homeip.net.

Reply via email to