[Samba] "lprm command" problem

Manuel Arenaz arenaz at udc.es
Fri May 30 07:59:41 GMT 2003


I have SAMBA compiled without CUPS support.

# ldd /usr/local/samba/sbin/smbd 
        libdl.so.2 => /lib/libdl.so.2 (0x4001b000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x4001e000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x40033000)
        libc.so.6 => /lib/libc.so.6 (0x40060000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I will try to recompile it, and I hope it works.

Thanks,

     Manuel


On Thu, 2003-05-29 at 01:31, Ken Sarkies wrote:
> Hi Manuel
> 
> Unless you have a particular reason for using your own print commands,
> once you have installed CUPS and are intending to use it, you shouldn't
> need to specify any print commands. You should simply put
> 
> printing = cups
> printcap name = cups
> 
> in the global section of smb.conf and samba/CUPS will handle everything
> from there. Make sure samba is compiled against CUPS. See
> 
> http://www.linuxprinting.org/kpfeifle/SambaPrintHOWTO/Samba-HOWTO-Collection-3.0-PrintingChapter-9th-draft.html
> 
> cheers, Ken
> 
> as an aside, should there be a space between %p and %j, or is this a way
> of building a job-id for cancel?
> 
> 
> On Thu, 2003-05-29 at 00:15, Manuel Arenaz wrote:
> > Hello, 
> > 
> > I have successfully installed samba  2.2.8 
> > (with CUPS) as a windows printing server using the 
> > print$ share. The W2000 clients are able to send 
> > jobs to a printer and view the corresponding 
> > printer queue.
> > 
> > However, when I try to delete a job from the 
> > windows client, I get the error "bad command".
> > My printers share in smb.conf is:
> > 
> > [printers]
> >   comment = All Printers
> >   path = /tmp
> >   create mask = 0700
> >   browseable = yes
> >   guest ok = yes
> >   writable = no
> >   printable = yes
> >   print command = /usr/bin/lp -d %p -o raw %s
> >   lpq command = /usr/bin/lpstat -o %p
> >   lprm command = /usr/bin/cancel %p-%j
> > 
> > The command "/usr/bin/cancel" works fine in the 
> > linux server. May the error be due to bad 
> > replacement of the "%p-%j" string?
> > 
> > Any help would be appreciated.
> > 
> > Thanks in advance,
> > 
> >    Manuel Arenaz
> > 
> > 
> > 
> > 
> > -- 
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba
> 
> 





More information about the samba mailing list