From owner-freebsd-hackers Thu Sep 12 19: 8:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F088A37B407 for ; Thu, 12 Sep 2002 19:08:22 -0700 (PDT) Received: from wonkity.com (wonkity.com [63.93.4.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22D5443E6A for ; Thu, 12 Sep 2002 19:08:15 -0700 (PDT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost.wonkity.com [127.0.0.1]) by wonkity.com (8.12.1/8.11.6) with ESMTP id g8D27wuF047453 for ; Thu, 12 Sep 2002 20:07:59 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.1/8.12.1/Submit) with ESMTP id g8D27w9W047450 for ; Thu, 12 Sep 2002 20:07:58 -0600 (MDT)?g (envelope-from wblock@wonkity.com) Date: Thu, 12 Sep 2002 20:07:58 -0600 (MDT) From: Warren Block To: FreeBSD-Hackers@FreeBSD.org Subject: lpr/lpd Print Job Name Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG (Related posts were made in -questions last night, but I think this may be a more appropriate list.) With lpr, there seems to be no direct way to set the name of a print job--the "N" line in the control file. -C, -J, and -T options don't do it, although -T does only when the pr filter is used, I think. Google searches show that people have occasionally needed to change the job name, but had no good method. A related problem is that lpd doesn't pass an existing job name to input filters. The input filter can't duplicate the original job name if it puts the job into another queue. If there's a workaround to this, I'd be very happy to hear about it. Otherwise... I hacked a preliminary -N option into lpr today. It works (I was surprised). But has lpr been around so long that it should not be touched? And there are issues about how multiple files should be handled: force the same job name on all of them, just the first one, or use a delimited list after -N? What about lpd--is adding a -N option and the job name to the parameters it feeds to input filters a bad idea? Suggestions are welcome--thanks! -Warren Block * Rapid City, South Dakota USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message