1832413 Members
2903 Online
110042 Solutions
New Discussion

Screen capture?

 
Paul Mezzanini
Advisor

Screen capture?

Hey all, I know in linux you can do a nice simple screen capture with 'cat /dev/fb > whateveryouwant'

Is there an HP-UX version of this? (11.i)

thx
-paul
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Screen capture?

Hi Paul:

'script' will record a terminal session's output. See the man pages for more information.

Regards!

...JRF...
S.K. Chan
Honored Contributor

Re: Screen capture?

If you're talking about screendump you can for example run this ..
$ xwd -out outfile
The mouse pointer will change to "+" sign, click onto the window you want to capture. Output file is "outfile". Or you can send it directly to a printer.
$ xwd|xpr|lp -onb -oraw -d
Pete Randall
Outstanding Contributor

Re: Screen capture?

Or - to capture a whole X window you can look into xwd and its companion, xwud. Do a man on them.

Pete

Pete
Paul Mezzanini
Advisor

Re: Screen capture?

Well, actually I'm being lazy.

I would like pretty much to see if someone has locked a workstation without removing my fat butt from its chair :)

It would also be handy for students doing screen captures when XV acts up.
harry d brown jr
Honored Contributor

Re: Screen capture?


Paul,

have you asked anyone at MCC for help ? :-))

Just kidding :-) What kind of workstations are they using?

btw, I'm in webster.

live free or die
harry
Live Free or Die
Wodisch
Honored Contributor

Re: Screen capture?

Hi Paul,

are you using CDE?
Then you could "cp/usr/dt/config/$LANG/sys.dtwmrc ~/.dt/dtwmrc" and then edit it to include a line like the following into the paragraph "Menu DtRootMenu":
"Print Window" f.exec "xwd -frame|xpr|lp -or"
and then right-mouse-click into the background and choose "Restart Workspace Manager..."

Next time you want to make a Screen-Dump right-mouse-click into the background again, and choose "Print Window". You don't have to print it, of course, that's just an example, save the output of "xwd" into a file, or pipe it to a converter program...

HTH,
Wodisch
Bill Hassell
Honored Contributor

Re: Screen capture?

As mentioned xwd will capture an Xwindow screen. By default, it copies the local screen. But change $DISPLAY to the name of a remote system and you can capture their screen.

Well, not quite that simple. If the user typed: xhost + then anyone can do this. Or you may need Xauthority features enabled. As you might expect, this is a serious security risk (electronic snooping) so it isn't that easy to setup. And if there is truly a problem, you may not be able to connect to the screen at all.


Bill Hassell, sysadmin