I have an issue with crontab that I can't resolve even though I searched the web like crazy. I tried to create a new cron job for taking a screenshot automatically every minute with scrot using "crontab -e" like so...
when I run it in my shell it does work fine and it seems to run with cron also because the log.txt file is modified every minute, however when I run it through cron the screenshots don't appear in the screenshots directory and nowhere else either.Code:* * * * * /usr/bin/scrot ~/screenshots/screen\%G-\%T.png > ~/log.txt
Other jobs in the same crontab run very well. It doesn't seem to be a PATH issue because the paths are complete. I would love help on this thing because it is driving me nuts,