From peter@spxdev.servplex.com  Mon Nov 25 14:16:56 2002
Return-Path: <peter@spxdev.servplex.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 948F537B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Nov 2002 14:16:56 -0800 (PST)
Received: from spxdev.servplex.com (ip66-105-58-82.z58-105-66.customer.algx.net [66.105.58.82])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 984E243EC5
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 25 Nov 2002 14:16:55 -0800 (PST)
	(envelope-from peter@spxdev.servplex.com)
Received: (from peter@localhost)
	by spxdev.servplex.com (8.11.6/8.9.3) id gAPMGN535784;
	Mon, 25 Nov 2002 16:16:23 -0600 (CST)
	(envelope-from peter)
Message-Id: <200211252216.gAPMGN535784@spxdev.servplex.com>
Date: Mon, 25 Nov 2002 16:16:23 -0600 (CST)
From: Peter Elsner <peter@servplex.com>
Reply-To: Peter Elsner <peter@servplex.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: lprm does not function like stated in man page.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         45732
>Category:       misc
>Synopsis:       lprm does not function like stated in man page.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gad
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 25 14:20:01 PST 2002
>Closed-Date:    Wed Nov 27 09:06:16 PST 2002
>Last-Modified:  Wed Nov 27 09:06:16 PST 2002
>Originator:     Peter Elsner
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
ServPlex Corporation
>Environment:
System: FreeBSD spxdev.servplex.com 4.5-STABLE FreeBSD 4.5-STABLE #1: Fri Mar 15 10:39:11 CST 2002 peter@spxdev.servplex.com:/home/usr/obj/home/usr/src/sys/SPXDEV i386

FreeBSD 4.5-STABLE

>Description:
man lprm displays the use as follows:

NAME
     lprm - remove jobs from the line printer spooling queue

SYNOPSIS
     lprm [-Pprinter] [-] [job # ...] [user ...]

lprm -Plsjd1p2 (none of the above work at all)

spxdev:root# lprm -Plsjd1p2
(LPD Server):
Cancel Function Not Supported
spxdev:root# lprm -
(LPD Server):
Cancel Function Not Supported
spxdev:root# lprm 13
(LPD Server):
Cancel Function Not Supported
spxdev:root# lprm peter
(LPD Server):
Cancel Function Not Supported
spxdev:root#

Now, it does work if (and only if) I enter the following:

lprm -Plsjd1p2 13

spxdev:root# lprm -Plsjd1p2 13
dfA013spxdev.servplex.com dequeued
cfA013spxdev.servplex.com dequeued
(LPD Server):
Cancel Function Not Supported
spxdev:root#

It does actually remove the print job but still gives the Cancel 
Function Not Supported message...

>How-To-Repeat:
   turn off your printer and send a print job.
   then type lprm job# or lprm username
   (just as described in man page) and see the results.

>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gad 
Responsible-Changed-By: roam 
Responsible-Changed-When: Mon Nov 25 23:24:32 PST 2002 
Responsible-Changed-Why:  
Over to our lpd maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45732 
State-Changed-From-To: open->closed 
State-Changed-By: gad 
State-Changed-When: Wed Nov 27 09:03:27 PST 2002 
State-Changed-Why:  
The command does work as documented in the man page.  The user was hoping 
for processing similar to how "-a" works for lpq (ie, the lprm command would 
check *all* print queues for a given job or for jobs from a given user), but 
the man page does say that it only operates on "a printer's spool queue". 
After discussing this with the user, they understood what the man page was 
saying. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=45732 
>Unformatted:
