Build some documentation for a customer and required some screenshots, KDE has Ksnaphot. But I wanted many screen shots and need a simple cli command to capture various screens.
ImageMagik provides the "import" command which does just the job from the command line.
To capture the whole desktop as a JPEG use the following.
$ import -window root screen.jpg
To save in a diffrent grapics format change the extention of the output file. (gif,pnm,pmm,tiff etc..)
To capture single window ie firefox
You need to find the window name, two methods of getting the "window name"
1. use xwininfo, which will then ask you to click target window and display information.
2. xlsclients -l
display list of windows
Note you can use a window title or the DECIMAL window ID, xwininfo and xlsclients output in HEX.
$ import -window <WINDOW ID DECIMAL> screen1.jpg
$ import -window "<WINDOWS TITLE>" screen2.jpg
Subscribe to:
Post Comments (Atom)
Solstice DiskSuite Command Summary
Having a sort out and found this course handout originally written by John Furlong - Sun Trainer in 23/10/2002 (Free to distribute). Remind...
-
When you install Solaris 11.3 or 11.4 from standard text installer cdrom, the en_GB-UTF-8 locales are not installed, even if you select Bri...
-
Been playing with ZFS dedupe for the last two weeks and just wanted to share my findings. Setup OpenSolaris build 131 Sun X4200, 2 x Du...
-
A customer had an iSCSI issue and was required to capture network packets at a specific time on a Windows 2008 server. I came up with simp...
No comments:
Post a Comment