Thomas Bork wrote: > Hallo Eirik Thorsnes, > > you wrote: > > >> lpq command = /usr/local/bin/smb-pdfprint status > [...] > >> if [ "$1" == "status" ]; then > >> echo "Printer: PDF-generator bogus status" > >> echo "Queue: no printable jobs in queue" > >> echo "Server: no server active" > >> echo "Filter_status: done" > >> echo "Rank Owner/ID Class Job Files Size Time" > >> exit 0 > >> fi > >> --------------- > >> (see also attached smb-pdfprint) > > thanks a lot :o) > Is there a special documentation for Mandrake in the source? I > downloaded the source for 2.2.6 from www.samba.org and cannot find > anything like this. > > > tom > It may be that it is only in latest CVS. It is in packaging/Mandrake directory. Anyway, here is relevant smb.conf: --------- [pdf-generator] path = /var/tmp guest ok = No printable = Yes comment = PDF Generator (only valid users) #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP & print command = /usr/share/samba/scripts/print-pdf %s ~%u \\\\\\\\%L\\\\%u %m %I & ---------- (the print command lines should be one line) Attached Mandrake print-pdf script.
Eirik -- REAL Programmers never work 9 to 5. If any REAL Programmers are around at 9 AM, it's because they were up all night.
samba-print-pdf.sh
Description: Bourne shell script
