Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Oct 2000 07:32:23 -0400
From:      "Potts, Ross" <rpotts@harris.com>
To:        'Stephen Krauth' <stephenk@stephenk.com>, freebsd-questions@freebsd.org
Subject:   RE: How do you stop printing?
Message-ID:  <95B669A7D872D41182A600508BDFFB8C12D5AC@mlbmx7.ess.harris.com>

next in thread | raw e-mail | index | archive | help
If I remember correctly, there is a command called stop or cancel(look under man
lp or lpr, it should lead you to it).  What you need is the number of the print
job, not the Unix process Number, the actual print job.  Example:

#lpstat -t             --  this should list any running printjobs
#stop hp-345      --  hp-345 is the printjob number

Now that I think about it, the command is cancel.

#cancel hp-345

You have to do this quickly sometimes, especially nowadays with networked
printers that have a large cache of memory.  Once it loads to the printer, I
don't think you can kill the job except with whatever your printer console
selections are

	-----Original Message-----
	From:	Stephen Krauth [SMTP:stephenk@stephenk.com]
	Sent:	Friday, October 13, 2000 1:38 AM
	To:	freebsd-questions@freebsd.org
	Subject:	How do you stop printing?

	I tried to cancel a huge print job, with extremely frustrating results.

	First mistake: I turned off that printer; that simply made it print
single
	lines of garbage on each page.  Then I tried 'lprm', which claimed to
	remove the job; I killed -9 lpd and the accompanying other process for
	apsfilter.  I unplugged the printer, several times.  The *ONLY* thing
that
	would stop the madness was rebooting freebsd.

	What's the deal?  Was some device buffer filled by the kernel and simply
	unclearable no matter what?  How do you stop this?

	I'm running FBSD 4.1 attached over /dev/lpt0 to an HP Deskjet 540.  lpd
	and apsfilter 5.4.2 are involved.  The job was printed from acroread4.  
	Here's my printcap:

	lp|aps1-cdjmono-letter-auto-default|Printer1 cdjmono letter auto
default:\
	    :lp=/dev/lpt0:\
	    :sd=/var/spool/lpd/printer1-cdjmono-letter-auto-default:\
	    :lf=/var/spool/lpd/printer1-cdjmono-letter-auto-default/log:\
	    :af=/var/spool/lpd/printer1-cdjmono-letter-auto-default/acct:\
	    :if=/usr/local/apsfilter/filter/aps1-cdjmono-letter-auto-default:\
	    :mx#0:\
	    :sh:
	raw|aps2-cdjmono-letter-raw|Printer1 cdjmono letter raw:\
	    :lp=/dev/lpt0:\
	    :sd=/var/spool/lpd/printer1-cdjmono-letter-raw:\
	    :lf=/var/spool/lpd/printer1-cdjmono-letter-raw/log:\
	    :af=/var/spool/lpd/printer1-cdjmono-letter-raw/acct:\
	    :if=/usr/local/apsfilter/filter/aps2-cdjmono-letter-raw:\
	    :mx#0:\
	    :sf:\
	    :sh:

	Thanks...

	Steve K.                              U.F.O. - "For the feeler gauge in
you."





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


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?95B669A7D872D41182A600508BDFFB8C12D5AC>