Command line DB reads
Doug Douglass
samba at denverdata.com
Mon Nov 12 07:42:03 GMT 2001
Try this as your "print command" in smb.conf:
print command = lpr -r -P%p -J'%J' %s
-J sets the job name.
Someone posted to this list a link to another list where this was the
suggested solution. I'm using it, but really haven't tested that it sets the
job name to something more useful.
HTH,
Doug
> -----Original Message-----
> From: samba-admin at lists.samba.org [mailto:samba-admin at lists.samba.org]On
> Behalf Of Gerald (Jerry) Carter
> Sent: Friday, November 09, 2001 10:07 PM
> To: THIBADEAU,DAN (HP-Roseville,ex1)
> Cc: 'samba at lists.samba.org'
> Subject: RE: Command line DB reads
>
>
> On Fri, 9 Nov 2001, THIBADEAU,DAN (HP-Roseville,ex1) wrote:
>
> >
> > Thanks, I guess I could have been more specific. Sorry. :)
> >
> > No the "lpq command" won't work. I have a mixed client base that will
> > be printing from PC's (Samba) and HPUX/Linux (LPD). I would like my
> > UX clients to be able to see the correct information when they run the
> > "lpq command" from the command line (ie: lpstat or lpq). Now all
> > filenames are "smbprn.00001.a12345" and owned by "pcguest".
> >
> > Since the "real" information was in the Samba databases, it would be
> > nice to have a "read only" tool to get that information from the TDB
> > files. It would make writing a "lpstat wrapper" and other tools much
> > easier.
>
> Shouldn't be hard to do at all really. Most of the code can
> probably be ripped out of the printing/ directory.
>
>
>
>
>
>
>
>
>
>
> cheers, jerry
> ---------------------------------------------------------------------
> www.samba.org SAMBA Team jerry_at_samba.org
> www.plainjoe.org jerry_at_plainjoe.org
> http://www.hp.com Hewlett-Packard
> --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
>
>
> --
> 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