http://www.imagemagick.org/script/import.php
Faire un screenshot :
import -display 1 -window root screenshot.png