Darrell, Wow...that was quick... You must dream about Perl scripts!!!
I've added the code to the end of my how-to, until I can test and implement. http://www.ibizbox.com/overlay/ Thanks, as usual, for all your help.... Steve ----- Original Message ----- From: "Darrell May" <[EMAIL PROTECTED]> To: "Steve Bush" <[EMAIL PROTECTED]>; "Mitel Devinfo List" <[EMAIL PROTECTED]> Sent: Saturday, January 05, 2002 1:49 PM Subject: Re: [e-smith-devinfo] Form Overlays with PCL Printers > Steve, your HowTo states: > > > 12. Modify the /etc/printcap file and add a filter= line under the new > > ljcolorbol printer definition. > > !!! This change will be overwritten everytime you add or remove a > > printer !!! > > The way to fix this is to create: > > /etc/e-smith/templates-custom/etc/printcap/05printer > > With something like this (see #BEGIN) added in, noting the $OUT line is > meant to be all one line: > > foreach my $printer ( @printers ) > { > $OUT .= "\n"; > $OUT .= $printer; > $OUT .= "|" . db_get_prop(\%accounts, $printer, 'Description') . ":\\\n"; > $OUT .= "\t:server:\\\n"; > $OUT .= "\t:mx#0:\\\n"; > $OUT .= "\t:sh:\\\n"; > $OUT .= "\t:ff_separator=false:\\\n"; > $OUT .= "\t:sd=/var/spool/lpd/$printer:\\\n"; > > # BEGIN > if (db_get_prop(\%accounts, $printer, 'Filter')) > { > $OUT .= "\t:filter=" . db_get_prop(\%accounts, $printer, 'Filter') . > ":\\\n"; > } > # END > > Then do this: > > /sbin/e-smith/db /home/e-smith/accounts \ > setprop ljcolorbol Filter /usr/libexec/filters/overlay.filter > > /sbin/e-smith/expand-template /etc/printcap > > And you will get this in /etc/printcap: > > ljcolorbol|lj filter:\ > :server:\ > :mx#0:\ > :sh:\ > :ff_separator=false:\ > :sd=/var/spool/lpd/ljcolorbol:\ > :filter=/usr/libexec/filters/overlay.filter:\ > :lp=/dev/lp0: > > Regards, > > -- > Darrell May > DMC Netsourced.com > http://netsourced.com > http://myEZserver.com > > > -- > Please report bugs to [EMAIL PROTECTED] > Please mail [EMAIL PROTECTED] (only) to discuss security issues > Support for registered customers and partners to [EMAIL PROTECTED] > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org > > -- Please report bugs to [EMAIL PROTECTED] Please mail [EMAIL PROTECTED] (only) to discuss security issues Support for registered customers and partners to [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Archives by mail and http://www.mail-archive.com/devinfo%40lists.e-smith.org