Operating System - HP-UX
1832350 Members
2540 Online
110041 Solutions
New Discussion

Print-Screen-Tool for 11.0

 
SOLVED
Go to solution
Jörn
Advisor

Print-Screen-Tool for 11.0

Hi,

in the course of the rearrangement to HPUX 11.0 a tool called "gjet" was getting in-operational.
This tool makes a print-out of the actual chosen screen/window.
Now we need a substitute for this tool which is opertional with HPUX 11.0

Can somebody help me?

THX!!
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: Print-Screen-Tool for 11.0

You need to take a look at /usr/bin/X11/xwd and /usr/contrib/bin/X11/xpr. "xwd" dumps the contents of the screen to a file which can be printed using xpr. We use a little script like this:

XPR=/usr/contrib/bin/X11/xpr
XWD=/usr/bin/X11/xwd
HEADER="Printed by `whoami` on `date`"
$XWD -frame | $XPR -header "$HEADER" -cutoff 75| lp -o nb -oraw -d$printer


Pete


Pete
Steve Steel
Honored Contributor

Re: Print-Screen-Tool for 11.0

Hi

xwd xpr like this

y=$(date)"_"$(hostname)_$LOGNAME
x=$(echo $y|sed -e 's/ /_/g')
z=$(echo $*|sed -e 's/ /_/g')"!"
/bin/rm /tmp/$PPID$LOGNAME 2>/dev/null
xwd -out /tmp/$PPID$LOGNAME
xpr -device dj1200 -header $x -trailer\"$z\" -landscape /tmp/$PPID$LOGNAME |lp -dbelgo046 -onb
/bin/rm /tmp/$PPID$LOGNAME 2>/dev/null


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RolandH
Honored Contributor

Re: Print-Screen-Tool for 11.0

I have attached a tool called screencapture
install it on your machine and be happy.

# gzip -d /tmp/screencapture.tar.gz
# cd /opt
# tar -xvf /tmp/screencapture.tar
# export DISPLAY=:0.0
# /opt/screencapture/bin/capture


Roland
Sometimes you lose and sometimes the others win
RolandH
Honored Contributor

Re: Print-Screen-Tool for 11.0

I think the attachment is broken - hmmmmm!!!

Attached again !!!!
Sometimes you lose and sometimes the others win
Jörn
Advisor

Re: Print-Screen-Tool for 11.0

Can you send me the tool again? Or can you tell me an URL where i can download it?
Or you can send it to me per e-mail. my address is: joern.reitwiessner@dlh.de

THX!!
RolandH
Honored Contributor

Re: Print-Screen-Tool for 11.0

I have send it to your address !!!


Roland
Sometimes you lose and sometimes the others win