-   Linux - Newbie (
-   -   writing a script to take a screenshot (

minm 01-14-2005 11:23 PM

writing a script to take a screenshot
Hi, is it possible to write a bash script that will take a snap shot of each window thats open and saves them in different files within a directory?

Oliv' 01-15-2005 07:28 AM


yes you can do that with xwd and its -id option... now the problem is to retrieve the identifer of each window... But if you know the basic of X-Window programming that will not be a problem ;)


minm 01-15-2005 03:27 PM

hmm, thanks!.. now to figure out how to do that ;)

J.W. 01-15-2005 05:19 PM

Assuming that this is a one time deal, you can probably just use ksnapshot, and manually save the screenshots under the appropriate name/directory. -- J.W.

Oliv' 01-16-2005 07:38 AM

see this link:


All times are GMT -5. The time now is 11:08 AM.