scrot for Debian ---------------- To use scrot with cron, you need to set the DISPLAY variable. See the following example: DISPLAY=:0 scrot -z -q 20 -e 'mv $f /var/backups/scrot/' To discover the current DISPLAY, use the following command: $ echo $DISPLAY -- Joao Eriberto Mota Filho Mon, 21 Sep 2015 17:09:45 -0300