Re: [foxboro] Print screens

On Wed, Nov 4, 2009 at 6:53 AM, Nelson, Timothy R.
<Timothy.Nelson@xxxxxxxxxxxxxxxxxx> wrote:
> I need something that will take unattended
> snapshots of various screens three times a day via a script that is fired off 
> by
> the cron.

you can do this with the 'import' utility that is a part of the
'imagemagick' suite available at sunfreeware.com.

the command line would be something like this:

import -display $display -window root $name.png

where $display is the unix display number so for the fist head would
be '0:0' and $name would need to be something unique (probably a
timestamp) the extension sets the image type (here I was doing PNG)

I have used this utility to make screenshots of all my graphics by
running a script to call them up in a loop and then saving them to a
PNG. I think something similiar could work for your application, it
would just require you to load the imagemagick package on the box.

-- 
Jeremy
 
 
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
 
foxboro mailing list:             http://www.freelists.org/list/foxboro
to subscribe:         mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe:      mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
 

Other related posts: