[Samba] Print Command

Joel Hammer Joel at HammersHome.com
Mon Sep 9 23:42:09 GMT 2002


Good. Glad something worked twice.
The sed stuff is to get rid of the long prefixes you sometimes get, like:
Microsoft Word document-etc.
They can take up most of the available space in the queue panel.
Joel
Tue, Sep 10, 2002 at 09:33:01AM +1000, Jeffrey Borg wrote:
> Worked a treat. Now the Laserjet 5si prints the username + job name on the
> screen :-) Though I didn't bother with the sed stuff just used %J straight
> into lpr
> 
> 
> ----- Original Message -----
> From: "Joel Hammer" <Joel at HammersHome.com>
> To: "Jeffrey Borg" <jeffreyb at futureschool.com.au>; <samba at lists.samba.org>
> Sent: Tuesday, September 10, 2002 9:19 AM
> Subject: Re: [Samba] Print Command
> 
> 
> > Yes. It is %J
> > Here is what I do and it works with lprng.
> > Joel
> >
> > [lp]
> > comment = Raw Printer for Z53
> > path = /tmp
> > create mask = 0700
> > guest ok = yes
> > hosts allow = 192.168.
> > printable = Yes
> > printing = lprng
> >   print command = echo %J %p %s  >>  /tmp/junkJ;\
> >                        a="`echo '%J' | sed "s/^.*- //"`" ;\
> >                echo This is truncated $a >> /tmp/junkJ;\
> >                        /usr/bin/lpr -Plp  -J"$a"  %s;\
> >                        rm %s
> > lpq command = /usr/bin/lpq -Plp
> > lprm command = /usr/bin/lprm -Plp %j
> > lppause command = /usr/sbin/lpc hold -Plp %j
> > lpresume command = /usr/sbin/lpc release -Plp %j
> > printer name = lp
> > share modes = No
> >
> > On Tue, Sep 10, 2002 at 08:56:43AM +1000, Jeffrey Borg wrote:
> > > Hi
> > >
> > > Is there are % variable which is the name of the job as seen on the
> windows
> > > print manager. So that I can use the -J option with lprng and get it
> > > displayed on the printer screen.
> > >
> > > Thanks
> > > Jeffrey Borg
> > >
> > >
> > > --
> > > 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