SUMMARY: SunRay screen dump to printer

2007-12-24 23:52:00

thank you, thank you.

Steven Ruby
Jed Dobson
Jay Lessert
David Foster

simplest solution (and message) was from Jed, who said:

xwd -root | xpr | lp -d yourprinter

since I have already managed printer routing, I dropped the "-d yourprinter".

since I got some errors, but it worked anyway, I routed stderr to
/dev/null in.

then I popped it all into a shell script, set up a menu option for the
SunRay restricted access mode to call that script, and just have to
restart SunRay services when the library isn't live.

so,

#!/bin/ksh
/usr/openwin/bin/xwd -root 2>/dev/null \
| /usr/openwin/bin/xpr | lp

---------------

alternatives included

(1) hack snapshot & script it straight to the printer.

(2) By installing netpbm:

http://soldc.sun.com/freeware/details/detail_netpbm_1mar94.p1_8_SPARC.html

you can just do:

% xwd -root | xwdtopnm | pnmtops | lpr -whatever

netpbm is a swiss army knife collection of raster translators, and
is *extremely* powerful to have hanging off your belt.

(3) I'd recommend using XV for this kind of thing, it's a GREAT program,
and free!

For scripting purposes look into xwd.

---------------

Chris Hoogendyk

--
O__ ---- Network Specialist & Unix Systems Administrator
c/ /'_ --- Library Information Systems & Technology Services
(*) \(*) -- W.E.B. Du Bois Library
~~~~~~~~~~ - University of Massachusetts, Amherst

<choogend at library.umass.edu>

---------------

Comments

Got something to say?

You must be logged in to post a comment.