From: Chris Hoogendyk (choogend@library.umass.edu)
Date: Mon Oct 21 2002 - 14:49:54 EDT
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@library.umass.edu> --------------- _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:09 EDT