This tutorial works very well on older versions of Fedora 15.
It is necessary that you have ImageMagick installed.
$ import --help
Version: ImageMagick 6.6.5-10 2011-02-08 ...
To create a screen capture using the following command:
$ import -window root image.jpg
Use the following command for a png image format:
$ import -window root image.png
Command import has options for this purpose without using the mouse.
$ import -window root -crop 200x200+0+0 image.jpg
If you want to use a mouse than import also has the option to grab the coordinates by using the mouse.
$ import image.jpg
You can also use a delay for the catch screen.
$ import -pause 10 -window root image.jpg
Many users use this command for automated scripts.
As you know, running the script from cron it doesn’t have access to your DISPLAY environment variable.
It is necessary to set the display if it’s not already set.
These are the basics for using the import command.
Using the argument –help you see its complexity.