Hello.
I use small add-on to standard foomatic script (add 'raw' option), something
like this:
<code>
--- /usr/lib/lp/model/netstandard_foomatic Sat Jan 8 09:13:01 2005
+++ /etc/lp/interfaces/netstandard_foomatic_withraw Fri Nov 3 10:54:21 2006
@@ -211,6 +211,10 @@
# simple="yes"
# ;;
+ raw )
+ raw="yes"
+ ;;
+
cpi=pica )
cpi=10
;;
@@ -540,8 +544,13 @@
then
(
logger -p lpr.debug -t "@1 netstandard_foomatic: printfile = ${printfile}" ""
-logger -p lpr.debug -t "netstandard_foomatic: ${NETPR} ${printfile}" ""
- #eval ${NETPR} ${printfile} 2>&1
+ if [ ! -z "${raw}" ]
+ then
+logger -p lpr.debug -t "netstandard_foomatic [RAW]: ${NETPR} ${printfile}" ""
+ eval ${NETPR} ${printfile} 2>&1
+ echo $? > ${LPTMPDIR}/pr_eexit_code.$$
+ else
+logger -p lpr.debug -t "netstandard_foomatic [PPDFILTER]: ${NETPR}
${printfile}" ""
cat ${printfile} | ${PPDFILTER} \
${request_id} ${user_name} "${title}" ${copies} "${option_list}" \
> ${tmpfilefoo} 2> /dev/null
@@ -548,6 +557,7 @@
eval ${NETPR} ${tmpfilefoo} 2>&1
echo $? > ${LPTMPDIR}/pr_eexit_code.$$
/bin/rm -f ${tmpfilefoo}
+ fi
) | ${LPTELL} ${LPTELL_OPTS} ${printer}
exit_code=`cat ${LPTMPDIR}/pr_eexit_code.$$`
</code>
And configuration in smb.conf, something like:
<code>
[global]
printing = sysv
load printers = yes
max print jobs = 100
print command = lp -c -d%p -oraw -Tpostscript %s; rm %s
lpq command = lpstat -o%p
lprm command = cancel %p-%j
lppause command =
lpresume command =
queuepause command =
queueresume command =
lpq cache time = 2
printcap name = lpstat
printcap cache time = 0
[print$]
path = /var/samba/printer_drivers
browseable = yes
guest ok = yes
read only = yes
write list = @"Domain admins"
[printers]
comment = Tiskarny
printable = yes
path = /var/samba/spool
browseable = no
read only = yes
guest ok = yes
public = yes
</code>
M.C>
This message posted from opensolaris.org