For some reason you may want to automatically take screenshots every day. Maybe you want to spy on someone, maybe you want to keep a visual diary of what you’re doing on your computer, maybe you just really really love screenshots.
Here’s how to do it using just command-line tools on Ubuntu.
Install the scrot package
Create the following script and call it
Note: you must give a values for FILEPATH. This must be absolute e.g. /home/bob/Dropbox.
You must also give a value for MYUSERNAME (e.g. bob). Do not not use $USER because the script will run as root.
Change the owner of the file, make it executable and move it to the cron folder.
Test that it’s working. After running the following command, a new file should be created in the folder you specifified in the FILEPATH variable.