Re: [foxboro] Print screens

May I suggest a basic solution, using only Solaris internal programs?
Xvd and convert are standard programs available since Solaris 2.5.

Under DM left menu, new PSC items can be invoked. 
It creates in /tmp a generic xwd file that is converted into a bmp file. 
This bmp file has timestamp in the name and can exported.
Pls remember to move files (not only copy) when ftp'ed to Windoze.

1) create the file "PSC" in /usr/fox/sys, with the following statements:
        dmcmd script
        dmcmd wp_applic /usr/openwin/bin/xwd -display $DM_DISPLAY -root -nobdrs 
-out /tmp/dumpfile.xwd
        dmcmd wp_applic /usr/prog/PSC.sh &

2) create the PSC.sh script in /usr/prog, with the following statements:
        #!/bin/sh
        /opt/windu/bin/convert /tmp/dumpfile.xwd /tmp/`date '+%d%h%H%M'`dump.bmp

Enjoy it.

Alessandro Ghiglione

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On 
Behalf Of duc.do@xxxxxxxxxxxxxx
Sent: mercoledì 4 novembre 2009 15.12
To: foxboro@xxxxxxxxxxxxx
Subject: Re: [foxboro] Print screens

This is what I love about this list. Even if your problem is somewhat esoteric, 
if you ask the question and explain clearly what you want, somebody, somewhere, 
at some point has run across the same problem, and may have solved it and, 
tada, a ready answer for you.

Good job, Jeremy. (Not that this was a surprise or anything like that.) Now, 
can I suggest a wiki entry? ;-)

Duc

-----Original Message-----
From: foxboro-bounce@xxxxxxxxxxxxx [mailto:foxboro-bounce@xxxxxxxxxxxxx] On 
Behalf Of Jeremy Milum
Sent: Wednesday, November 04, 2009 9:01 AM
To: foxboro@xxxxxxxxxxxxx
Subject: 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
 
 
 
_______________________________________________________________________
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: