No subject

Mon Dec 1 12:27:21 GMT 2003

solarisbox-1:[/var/spool/samba]# ls -l
total 176
-rwxr--r--   1 samba    other      28851 Sep 19 03:23 SAMBA.2Wa40i
-rwxr--r--   1 samba    other      60073 Sep 19 03:22 SAMBA.9HayZi

I can print the files manually using the command

/usr/bin/lp -c -o nobanner -T postscript -d pagepro6 SAMBA.2Wa40i

or, as I have found somewhere (this is in my smb.conf)
/usr/bin/nawk '/^%!PS/, /^%%EOF/' SAMBA.2Wa40i | /usr/bin/lp -c -o nobanner -T postscript -d pagepro6

.. the only problem is that it seems like the "print command" is never executed
once a print request arrives.

The complete contents of my smb.conf (that has to do with printing) follows:

        debug level = 2
        log file=/var/log/samba.%m
        printing = bsd
        printcap name = /etc/printers.conf
        load printers = yes
...disk shares...
        comment = "All printers"
        path = /var/spool/samba
        browseable = no
        printable = yes
        public = yes
        writable = no
        create mode = 0700
        path = /var/spool/samba
        printer name = pagepro6
        writable = yes
        public = yes
        printable = yes
        print command = /usr/bin/nawk '/^%!PS/, /^%%EOF/' %s | /usr/bin/lp -c -o nobanner -T postscript -d %p; rm -f %s

Any suggestion besides sett ing up a cron job to print everything in
the spool directory every minute or so, but this isn't the optimal
solution to the problem ?


More information about the samba mailing list