![](https://seccdn.libravatar.org/avatar/7c5491cba294631948c7605476629e73.jpg?s=120&d=mm&r=g)
On Sat, 31 Jan 1998, Steven 'Svet' Downum wrote:
rather ugly. I would use apsfilter to fix this problem, however smbprint is called as a filter in the /etc/printcap entry. Has anyone faced this
Well, I had a similar problem prior to apsfilter being written. What I did was write a short little script that calls the epsonps (a text-to-Postscript converter) and ghostscript programs as part of a pipeline that leads to the smbprint command. Later I incorporated it into a complete printer administration and setup facility (similar to YAST in concept) which will filter input in a variety of ways and dispatch the output to SMB, Netware, UUCP, RSH, etc. depending on the setup variables for the print spool. I wrote the system in Python because it was too large to write as a shell script and still retain my sanity, and I didn't have a few spare months to write it in "C". Unfortunately I don't know if that printer system will work on SuSE, but here's the relevant portion: /usr/localbin/standard-spoolbacks/ps-filter | smbclient \\\\pams_win95\\panasonic $PASSWORD $IP -P $USER $WORKGROUP -c 'print -' where ps-filter is: nenscript -TUS -ZB -p- | gs -q -sDEVICE=$DEVICE \ -r$RESOLUTION \ -sPAPERSIZE=$PAPERSIZE \ -dNOPAUSE \ -dSAFER \ -sOutputFile=- - Note that this is from an earlier pre-Python version of the system that hardwired things into individual shell scripts for the printers. You may have to change things for SuSE, in particular, SuSE doesn't use 'nenscript' as its Ascii-to-Postscript filter. Eric Lee Green exec@softdisk.com Executive Consultants Systems Specialist Educational Administration Solutions You might be a redneck if you put on insect repellant prior to a date. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e