I'm trying to print postscript files over samba.. When I print from StarOffice 3.1 I get this error message in the print error file:
/usr/sbin/dj550c-filter: /usr/bin/gs -q -dSAFER -dNOPAUSE -r300 - sDEVICE=cdj550 -sOutputFile=- - failed It works perfectly if I type 'lpr -Plp filename' ... I've attached my printcap & filter file (samba filter). -Paul
# # Copyright (c) 1983 Regents of the University of California. # All rights reserved. # # Redistribution and use in source and binary forms are permitted # provided that this notice is preserved and that due credit is given # to the University of California at Berkeley. The name of the University # may not be used to endorse or promote products derived from this # software without specific prior written permission. This software # is provided ``as is'' without express or implied warranty. # # @(#)etc.printcap 5.2 (Berkeley) 5/5/88 # # > This file was generated by /usr/sbin/magicfilterconfig. < # #lp|hp660c|HP Deskjet 660C:\ # :lp=/dev/lp1:sd=/var/spool/lpd/hp660c:\ # :sh:pw#80:pl#66:px#1440:mx#0:\ # :if=/usr/sbin/dj550c-filter:\ # :af=/var/log/lp-acct:lf=/var/log/lp-errs: lp|hp_dj660c|HP Deskjet 660C:\ :cm=HP Deskjet 660C:\ :lp=/dev/null:sd=/var/spool/lpd/smb/hp_dj660c:\ :sh:pw#80:pl#66:px#1440:mx#0:\ :af=/var/spool/lpd/smb/hp_dj660c/acct:lf=/var/spool/lpd/smb/hp_dj660c/errs:\ :if=/usr/local/sbin/hp_dj660c:
#!/bin/sh /usr/sbin/dj550c-filter $* | ( logfile=/tmp/smb-print.log # logfile=/dev/null eval acct_file=\$$# spool_dir=`dirname $acct_file` config_file=$spool_dir/.config eval `cat $config_file` echo "server $server, service $service" >> $logfile ( # NOTE You may wish to add the line `echo translate' if you want automatic # CR/LF translation when printing. # echo translate echo "print -" cat ) | /usr/bin/smbclient "\\\\$server\\$service" $password -U $server -N -P >> $logfile )