Hello all, Is there any way to stuff a more descriptive tag into a print job name? The jobs we're printing now are of the type: smbprn.003447.sdfasa I seem to remember a way to put the sending machine's name into the job name. Any help would be greatly appreciated! -adam University of Denver
Look at the %J variable in the smb.conf man page. That contains the job name. Careful, as you will need to put '' around it in most cases to get it to work. Then figure out (with man lp or man lpr) how to pass a job name to the print job. On my system, it is: lpr -J'%J' HTH! ---- _ _ _ _ ___ _ _ _ |Y#| | | |\/| | \ |\ | | | Ryan Novosielski - Jr. UNIX Systems Admin |$&| |__| | | |__/ | \| _| | novosirj@umdnj.edu - 973/972.0922 (2-0922) \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630 On Mon, 11 Aug 2003, adam r. christopher wrote:> Hello all, > > Is there any way to stuff a more descriptive tag into a print job name? > The jobs we're printing now are of the type: smbprn.003447.sdfasa > > I seem to remember a way to put the sending machine's name into the job > name. > > Any help would be greatly appreciated! > > -adam > University of Denver > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba >
On Mon, 2003-08-11 at 13:34, adam r. christopher wrote:> Hello all, > > Is there any way to stuff a more descriptive tag into a print job name? > The jobs we're printing now are of the type: smbprn.003447.sdfasa > > I seem to remember a way to put the sending machine's name into the job > name. > > Any help would be greatly appreciated!Since nobody else seems to be responding... (and since I spent a little time at DU ;) If you're using cups - it looks like you are (you really should specify that info in your original post...) this may apply to you. I think you can't control the job names that get submitted unless you don't use the cups api and use the lpr interface to cups instead. Then you can use the % variables to sumbit the jobs to be whatever you want. if you want machine name you could use %m i think... best wishes brad PS - I hope somebody comes along and says - no you can do it using the cups API like this - ...
This works for me with lprng: [ps] comment = Filtered for Z53 path = /tmp read only = No 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 -Pps -J"$a" %s;\ rm %s lpq command = /usr/bin/lpq -Pps lprm command = /usr/bin/lprm -Pps %j lppause command = /usr/sbin/lpc hold ps %j lpresume command = /usr/sbin/lpc release ps %j share modes = No use client driver = yes The truncation is to get rid of the boilerplate with which some programs prefix their print job names. Joel On Mon, Aug 11, 2003 at 11:34:20AM -0600, adam r. christopher wrote:> Hello all, > > Is there any way to stuff a more descriptive tag into a print job name? > The jobs we're printing now are of the type: smbprn.003447.sdfasa > > I seem to remember a way to put the sending machine's name into the job > name. > > Any help would be greatly appreciated! > > -adam > University of Denver > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Maybe Matching Threads
- RE: How do I get the @#$$% job name to show instead of smbprn.yad a.yada?
- How do I get the @#$$% job name to show instead of smbprn.yada.ya da?
- Samba - cannot print multiple copies
- I've always HATED printing with Samba
- i can`t delete print jobs in my samba server from clients windows