Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I use zscreen in windows to capture my screen every 2 minute and save them on local file system with date time label. Is there any tool or script to doing this on linux Ubuntu?

share|improve this question

marked as duplicate by Rinzwind, Eric Carvalho, user68186, Flimm, Thomas Ward May 10 '13 at 16:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

You can use scrot and put it in /etc/crontab add this to /etc/crontab

*/2 * * * * <username> scrot 

For that you need scrot, which you can install like this:

sudo apt-get install scrot

You can also give scrot the following argument to move images to your Pictures directory

scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/'
share|improve this answer
thanks for your answer. If i want to use scrot only when i want crontab isn't true manner for this issue. I use script for this issue while true; do scrot & sleep 2; done but when i use this script it's sleep influence on all system like in typing and cause delay in typing. How can i fix this issue? – taher May 17 '13 at 22:13

Not the answer you're looking for? Browse other questions tagged or ask your own question.