Does any one know how to get the print jobs on the samba server displayed on Windows 95's print queue? Thanks in advance. The following is a sample of my smb.conf: [global] printing = sysv printcap name = /opt/samba/lib/printcap load printers = yes guest account = nobody [printers] comment = All Printers path = /tmp browseable = no printable = yes public = yes writable = no create mode = 0700 print command = /usr/bin/lp -c -d %p %s;rm %s lpq command = /usr/ucb/lpq -P%p lprm command = /usr/bin/cancel %p-%j _____________________________________________ Katie Ng Email: katie@odetics.com Database Administrator/Software Specialist Odetics Inc., 1515 S. Manchester Ave, Anaheim, CA 92802 714-780-7828 (Phone) 714-780-7995 (Fax) _____________________________________________
On Fri, 13 Feb 1998 13:28:22 PST Katie Ng <kkn@odetics.com> wrote:> Does any one know how to get the print jobs on the samba server > displayed on Windows 95's print queue? Thanks in advance. > > The following is a sample of my smb.conf: > > [global] > printing = sysv > printcap name = /opt/samba/lib/printcap > load printers = yes > guest account = nobody > > [printers] > comment = All Printers > path = /tmp > browseable = no > printable = yes > public = yes > writable = no > create mode = 0700 > print command = /usr/bin/lp -c -d %p %s;rm %s > lpq command = /usr/ucb/lpq -P%p > lprm command = /usr/bin/cancel %p-%jIf you have specified "printing = sysv" then samba is expecting the result of running "lpq command" to be the output from an "lpstat -o %p" command. Jonathan.
On Fri, 13 Feb 1998, Katie Ng wrote: kkn> Does any one know how to get the print jobs on the samba server kkn> displayed on Windows 95's print queue? Thanks in advance. kkn> kkn> The following is a sample of my smb.conf: kkn> kkn> [global] kkn> printing = sysv kkn> printcap name = /opt/samba/lib/printcap kkn> load printers = yes kkn> guest account = nobody kkn> kkn> [printers] kkn> comment = All Printers kkn> path = /tmp kkn> browseable = no kkn> printable = yes kkn> public = yes kkn> writable = no kkn> create mode = 0700 kkn> print command = /usr/bin/lp -c -d %p %s;rm %s kkn> lpq command = /usr/ucb/lpq -P%p kkn> lprm command = /usr/bin/cancel %p-%j You need to set 'lpq command = lpstat -o %p', it did the trick on our Solaris 2.5 servers. I think that the default for sysv printing is 'lpstat -o%p', but Solaris didn't like that. Best, Steen Jensen System & net administrator -- Aalborg University e-mail: sj@kom.auc.dk Institute of Electronic Systems Department of Communication Technology Frederik Bajers Vej 7A DK-9220 Aalborg East - Denmark kkn> kkn> _____________________________________________ kkn> kkn> Katie Ng Email: katie@odetics.com kkn> Database Administrator/Software Specialist kkn> Odetics Inc., kkn> 1515 S. Manchester Ave, Anaheim, CA 92802 kkn> 714-780-7828 (Phone) kkn> 714-780-7995 (Fax) kkn> _____________________________________________ kkn> kkn> kkn> ------------------------------ kkn>
For sysv print spooler you should change: lpq command = /usr/ucb/lpq -P%p to lpq command=/bin/lpstat %p -- Regards Per \|/ (o *) ---------------------------------------------------------oOOO--(_)- | Per Kofod / Systems Engineer ^^^^^^^ Email: per@copen.sgi.com | | Silicon Graphics Denmark \ / Fax: (+45) 43270481 O | Stationsparken 25 \o/ Phone: (+45) 43438600 O | 2600 Glostrup | O | DENMARK / \ URL: http://www.sgi.dk o ------------------------------------------------------------------- *** People not living on the edge, takes up too much space. ***