Network Postscript

Anonymous anonymous at
Fri Jan 14 06:56:34 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

More information about the cups mailing list