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.
Step 1
Install the scrot package
Step 2
Create the following script and call it screenshots
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.
Step 3
Change the owner of the file, make it executable and move it to the cron folder.
Step 4
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.