Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Sep 2002 20:20:31 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        FreeBSD-Questions@FreeBSD.org
Subject:   lpr Job Name
Message-ID:  <Pine.BSF.4.21.0209112008330.44410-100000@wonkity.com>

next in thread | raw e-mail | index | archive | help
After some Google searches and spelunking of the lpr source, it appears
that there really is no way to directly set the print job name with lpr.

This is the "N" line in the config file; lpr's -T, -J, and -C options
don't affect it.  In fact, nothing does except the filename argument.  
In lpr.c, it's just this:

card('N', arg);

where "card" writes the line to the control file and arg is the
to-be-printed file's name.

Google shows that numerous people over the last few years have wanted
the ability to change the job name.

I'm considering adding a -N option to lpr to set this.  The first
problem I can see is that if the user prints multiple files (lpr -Nmyjob
file1 file2 file3), such a name option would be questionable.  Should it
set the same name for each file?  Maybe only the first one?

The question is: has anyone else got a better idea or a workaround?

(These particular files are going to a network printer/copier that
stores them.  A user walks up to the printer, selects their jobs, and
prints them.  However, twenty files called "Standard input" really makes
it difficult for them to prioritize. 8-)

-Warren Block * Rapid City, South Dakota USA


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0209112008330.44410-100000>