1829010 Members
2567 Online
109986 Solutions
New Discussion

Capture Screen

 
SOLVED
Go to solution
HU Wen
Occasional Contributor

Capture Screen

Hello, everybody!

I wonder if any body can tell me: in HP-UNIX 10.20 environment how I can capture the screen picture in a picture file in format JPEG or BMP etc? Maybe I should download a special software?

Thank you very much!
10 REPLIES 10
Darrel Louis
Honored Contributor

Re: Capture Screen

If you are using Reflection/X for instance you use ctrl+alt+printscreen or ctrl+printscreen
Depends on what you need
Alex Glennie
Honored Contributor
Solution

Re: Capture Screen

several options here :

1. xwud & xwd : are used to create an X windows dump : see man pages : syntax : xwd -root -out etc and use xwud to display .

2. under CDE : use icon editor off main panel : see dtpad icon ..... gotot edit, Grab screen image ... format is in X bitmap i beleive.

3. Use XV or similar shareware utility to grab screen/window image and convert to desired format : see XV links using search facility top left.
Alex Glennie
Honored Contributor

Re: Capture Screen

This member has assigned points to 0 of 15 responses to his/her questions.

Lets make it 1 of 16 this time ;)
Kenneth Platz
Esteemed Contributor

Re: Capture Screen

Hu,

There are a couple of ways of capturing the screen or a portion of it.

First, you can use the "xwd" application, which captures a window into "xwd" format which can in turn be used by "Xwd" or other applicaitons such as "xv".

To capture a single window, run the command "xwd > capture.xwd". The cursor will turn into a crosshairs. Simply click on a single window, and it will dump the contents of that window to a file.

Alternatively, the command "xwd -root > capture.xwd" will capture the entire screen, and dump the output to a file.

The "xwud" command can be used to view the file on the screen, or you can use the following commands to attempt to print the screen to a printer:

xwd | xwd2ps | lp -opostscript
xwd | xwd2sb | pcltrans | lp -oraw

xwd2ps can be downloaded in source format from:
ftp://ftp.x.org/R5contrib/xwd2ps.tar.Z

Additionally the "xv" program (available from your local HP-UX porting and archive center) is capable of doing screen captures and writing the resulting file into a number of different formats, including BMP, JPEG, GIF, TIFF, and others.

I think, therefore I am... I think!
Paula J Frazer-Campbell
Honored Contributor

Re: Capture Screen

Hi
At present you have asked 17 questions on the forum and have had some very good responses to them.

Within the forum points are assigned to the answers by the person posing the question and these points are assigned as to how helpful the answer has been.

There are two reasons to assign points one is to identify to future users who might have a similar problem the answer that was most helpful, and the second to reward the guys/gals on the forums who have taken their time to assist you.

Would you therefore do a search using your name and assign points to the people who gave you answers that were useful.

There is also an area on the forum which will explain this in more detail.

I am I hope writing this presuming that you did not know about the points system.

PS. log in to assign points.

Paula
If you can spell SysAdmin then you is one - anon
mooi-kuan
Advisor

Re: Capture Screen

You may try this command if the file exist in your system,

/opt/screencapture/bin/capture
mk
Alex Glennie
Honored Contributor

Re: Capture Screen

I think the capture command comes with the Mpower/Web product which is on the apps CD's ... but it would also work .
Shannon Petry
Honored Contributor

Re: Capture Screen

Someone else pointed our /opt/screencapture/bin/capture.
In hp-ux 11, it is moved to /opt/printscreen/bin/capture.
This program allows you to create images in JPG, GIF, BMP, XWD, TIF, XPM and XBM format from any of the following.
The whole screen, a selected region of the screen, a window, a window and it's children.

Before you download bunches, use what is there. If you do not have it installed, install the M/Power packages from the Applications CD's.

Regards,
Shannon
Microsoft. When do you want a virus today?
Shannon Petry
Honored Contributor

Re: Capture Screen

I too tried all of the tricks mentioned. I gave up and am using an Older PC with Linux on it for all monitoring. (see www.trinux.org) This small Linux distribution comes with all kinds of nice network monitoring and security tools.

Regards,
Shannon
Microsoft. When do you want a virus today?
Bill Hassell
Honored Contributor

Re: Capture Screen

If you are capturing the screen on an Xwindow box (ie, an HP-UX workstation or Xterminal), you can use xwd. There are lots of options including specifying the screen ID number. The output of xwd is a binary stream of numbers so redirect the result to a file.

Now get a copy of PBMplus (Portable BitMap Utilities) which converts just about everything bit-map into everything else. You can get precompiled software at the HP-UX porting centre: http://hpux.connect.org.uk/

Look for: netpbm


Bill Hassell, sysadmin