White Glove does a decent job of printing most things, but it is not the best printer server in the world. Basically, it does local conversion of files to postscript or PDF format and printing of thos files to many common printer formats - and conversion to printer formats and remote printing on print servers. It is a bot weird compared to most print setups but it does function.
Local printing: The 'p' shell script converts an input file name using the output conversion specified into an output for the printer type. Then you either output to a file or directly to an attached printer:
p [file-to-print] [printer-type] p [file-to-print] [printer-type] > [printer-device]
For exmaple, for output to a laserjet on the /dev/lp0 you might use:
p /mozilla.ps laserjet > /dev/lp0
Remote print: To print to a remote Windows printer, you use 'np' (netprint) which takes input of the form:
np [IP-address or host-name] [printer-designator] [printer-format] [file-name]
For exmaple, for output a file /mozilla.ps to a remote computer at IP address 1.2.3.4 to a printer called G85 using the color deskjet 550 format you might use: you might use:
np 1.2.3.4 G85 cdj550 /mozilla.ps
The output will look something like this, and the file will print.
added interface ip=2.3.4.5 bcast=2.3.4.255 nmask=255.255.255.0 session request to 1.2.3.4 failed (Called name not present) session request to 192 failed (Called name not present) Password: Domain=[WORKGROUP] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] smb: \> putting file /tmp/15205.out as \/tmp/15205.out (2137.2 kb/s) (average 2137.2 kb/s) smb: \> wg:root /root>
For non postscript or PDF files, conversion to print formats is included for many file types. You will have to do the conversion yourself for now, however there is a convert program that handles this for most formats. The 'p' command will let you know the options for conversions if you use a valid printer type but it cannot print the file you have provided. The 'np' command doesn't provide this output so when in doubt try the 'p' command first. For example:
wg:root /root> p /root/hextable laserjet > /dev/null Only postscript or pdf files please - for conversions use convert [type]:/root/hextable ps:/root/hextable.ps where [type] is any of: [text/art/avi/avs/bmp/cin/cmyk/cur/cut/dcm/dcx/dib/dpx/ epdf/epi/eps/ept/fax/fits/gif/gray/ico/mat/miff/mono/mpc/mtv/mvg/otb/p7/palm/ pbm/pcd/pcds/pcl/pcx/pdb/pfa/pfb/pgm/picon/pict/pix/pnm/ppm/rad/rgb/rla/rle/ /sct/sfw/sgi/sun/tga/tim/uil/viff/wbmp/wpg/xcf/xpm/xwd/yuv] html2ps to convert html files for ps printing
To get a printer listing try this:
wg:root /root> p /root/hextable xx /usr/local/bin/p file [bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256 bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono cljet5 cljet5c deskjet djet500 epswrite faxg3 faxg32d faxg4 ijs jpeg jpeggray laserjet lj5gray lj5mono ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus nullpage pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkm pkmraw pksm pksmraw png16 png16m png256 pngalpha pnggray pngmono pnm pnmraw ppm ppmraw psgray psmono psrgb pswrite pxlcolor pxlmono tiff12nc tiff24nc tiffcrle tiffg3 tiffg32d tiffg4 tifflzw tiffpack uniprint]