Why Is Printing Such a Problem?

David Collier-Brown davecb at canada.sun.com
Tue Feb 1 17:16:38 GMT 2000


  I't always mildly stupid on Unix: I usually debug it by
setting the print command to a debugging script, and see
whether the data's getting to Samba or not.

How about
print command = /home/davecb/bin/test_printer %s %p

and have the file contain:
echo "printed $1 on $2" >>/tmp/printlog
/bin/cat $1 >>/tmp/printlog; rm $1

then do a tail -f of /tmp/printlog

--dave (mainframes have printing systems: Unix has lpr) c-b
-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com


More information about the samba mailing list