From: Kenneth P. <sh...@we...> - 2001-06-13 12:47:40
|
My Red Hat 6.1 printcap, maintained previously with printtool, has an "if" parameter for each printer set as "if=/var/spool/lpd/lp/filter". It looks like webmin considers this to be the "driver" in the printer configuration page. However, it fails to read this value from an existing printcap. I can set the value and save it and the correct value is put in the file, but when I return to the config page, the entryfield is once again blank and "Red Hat" is checked as the driver type. A similar problem occurs with the "description" field. I can enter a description and it is saved as an alias for the printer (eg. "lp|My printer"), but when I return to the config page, the description is blank. In this case I suspect it's a parsing problem, as another printer with no spaces in the description is correctly loaded into the description entryfield. Looks like the config page fails to load all fields from the printcap file. I'm including my current printcap inline for you to test with. Note that the 3rd printer, lp3, has not been saved by webmin, and still retains its printtool formatting. # # Please don't edit this file directly unless you know what you are doing! # Be warned that the control-panel printtool requires a very strict format! # Look at the printcap(5) man page for more info. # # This file can be edited with the printtool in the control-panel. ##PRINTTOOL3## REMOTE lp|Lexmark in Engineering lobby:sd=/var/spool/lpd/lp:sh:rm=lp:mx#0:rp=printer:if=/var/spool/lpd/lp/filter: ##PRINTTOOL3## REMOTE lp2|HPLJ4V in Design:sd=/var/spool/lpd/lp2:sh:rm=lp2:mx#0:rp=printer:if=/var/spool/lpd/lp2/filter: ##PRINTTOOL3## REMOTE POSTSCRIPT 600x600 ledger {} PostScript Default {} lp3|Optra45n_1:\ :sd=/var/spool/lpd/lp3:\ :mx#0:\ :sh:\ :rm=lp3:\ :rp=printer:\ :if=/var/spool/lpd/lp3/filter: Ken mailto:sh...@we... http://www.sewingwitch.com/ken/ [If answering a mailing list posting, please don't cc me your reply. I'll take my answer on the list.] |