This command captures the file name, at least coming in from a windows client, in variable %J. It then strips the long Microsoft Word Document prefix off the document, in case it is a word document, and then prints it. This allows the windows client to see his file name in the print queue on his windows machine, not some randomly generated samba name. Some of the extra lines there are for debugging reasons. This actually works. Joel On Thu, Jan 03, 2002 at 03:48:09PM -0700, David Bear wrote: > On Thu, 3 Jan 2002, Joel Hammer wrote: > > [lp] > > comment = Raw Printer for Z53 > > # max print jobs = 1 > > 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 > > what in the world does this print command do? I've never seen anythin > like it --
----------------------------------------------------------------------------- YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST The address you post from MUST be your subscription address If you need help, send email to [EMAIL PROTECTED] (or lprng-requests or lprng-digest-requests) with the word 'help' in the body. For the impatient, to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED] with: | example: subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED] unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED] If you have major problems, send email to [EMAIL PROTECTED] with the word LPRNGLIST in the SUBJECT line. -----------------------------------------------------------------------------
