[Samba] 2.2.6 and printer questions

Eirik Thorsnes eirik.thorsnes at fys.uib.no
Mon Nov 11 19:01:02 GMT 2002


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: samba-print-pdf.sh
Type: application/x-sh
Size: 1703 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20021111/365a6098/samba-print-pdf.sh


More information about the samba mailing list