Is there a reason you don't use the simpler command in your smb.conf? Could this be a permissions problem? (nawk won't work for your smb user). What do you see in your smb logs? I forget my nawk, but, it seems that nawk is just deleting any extraneous lines in your postscript print files. Is that necessary?
Joel On Thu, Sep 19, 2002 at 03:51:16AM +0200, P-O Yliniemi wrote: > Hi, > > I have some trouble getting files printed on my Solaris 8 machine running > Samba 2.0.5. > > The client is a winxp installed laptop, the printer is configured as a > postscript printer (Minolta PagePro 12 PS), although it is a PCL printer > (Minolta PagePro 6). > > >From the client side, everything works as it is supposed to, and when I check > in the selected spool directory for Samba printers, I find the spooled printouts: > > 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 > solarisbox-1:[/var/spool/samba]# > > 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: > > [global] > debug level = 2 > ... > log file=/var/log/samba.%m > ... > printing = bsd > printcap name = /etc/printers.conf > load printers = yes > ... > ...disk shares... > [printers] > comment = "All printers" > path = /var/spool/samba > browseable = no > printable = yes > public = yes > writable = no > create mode = 0700 > [pagepro6] > 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 ? > > /PeO > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba