andrew at ncsis.com
Mon Jan 17 19:40:05 PST 2005
> Andrew wrote:
> > I am currently in the process of configuring some pc's to replace some
> > old WYSE terminals. I need to organise a single key press which will
> > print a screenshot of the screen to a network printer(HP Laserjet 1100).
> > To print the screenshot I have tried
> > xwd -display localhost:0 -root | xwdtopnm | pnmtops | lpr
> You could try using import (from ImageMagick) instead of xwd, like this :
> import -window root /tmp/file.jpg && jpegtopnm /tmp/file.jpg | pnmtops | lpr && rm /tmp/file.jpg
> For security reasons you'd probably write a shell script and use mktemp to avoid tmp-file insecurities
> - Peder
I am still unsure why xwd would not work to print ps over the network, but I am happy to say that import works flawlessly.
Thanks for your help
More information about the cups