From dan@xeon.int.nz.freebsd.org  Mon Apr 30 20:05:21 2001
Return-Path: <dan@xeon.int.nz.freebsd.org>
Received: from xeon.int.nz.freebsd.org (ns1.unixathome.org [203.79.82.27])
	by hub.freebsd.org (Postfix) with ESMTP id 40F4737B423
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 30 Apr 2001 20:05:10 -0700 (PDT)
	(envelope-from dan@xeon.int.nz.freebsd.org)
Received: (from dan@localhost)
	by xeon.int.nz.freebsd.org (8.11.3/8.11.3) id f41358l63940;
	Tue, 1 May 2001 15:05:08 +1200 (NZST)
	(envelope-from dan)
Message-Id: <200105010305.f41358l63940@xeon.int.nz.freebsd.org>
Date: Tue, 1 May 2001 15:05:08 +1200 (NZST)
From: dan@freebsddiary.org
Reply-To: dan@freebsddiary.org
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: add example for using PS test code
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         27004
>Category:       docs
>Synopsis:       The handbook supplies a PS program, but doesn't show how to use it.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 30 20:10:00 PDT 2001
>Closed-Date:    Wed May 2 00:09:17 PDT 2001
>Last-Modified:  Wed May 02 00:09:31 PDT 2001
>Originator:     Dan Langille
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
The FreeBSD Diary
>Environment:
System: FreeBSD xeon.int.nz.freebsd.org 4.3-STABLE FreeBSD 4.3-STABLE #3: Tue Apr 24 16:28:43 NZST 2001 root@xeon.int.nz.freebsd.org:/usr/obj/usr/src/sys/XEON i386

>Description:
	When I getting my PS printer going, I had no idea how to send it a test page.
	The handbook does have a sample postscript program, but it doesn't show you
	how to use the sample.
>How-To-Repeat:
	see http://www.freebsd.org/handbook/printing-intro-setup.html
	under section 9.3.1.3.2. Checking Printer Communications
>Fix:
--- chapter.sgml.orig	Tue May  1 14:51:29 2001
+++ chapter.sgml	Tue May  1 14:57:11 2001
@@ -577,6 +577,15 @@
 (Is this thing working?) show
 showpage</programlisting>
 
+          <para>To use this program, put the above text into a file foo.ps,
+            then issue this command:</para>
+
+          <screen>&prompt.root; <userinput>cat foo.ps > /dev/lpt<replaceable>N</replaceable></userinput></screen>
+
+          <para>where <replaceable>N</replaceable> is the number of the 
+            parallel port, starting from zero. This will print a page
+            with a line from the bottom left corner up to some text.</para>
+
 	  <note>
 	    <para>When this document refers to a printer language, it is
 	      assuming a language like PostScript, and not Hewlett
>Release-Note:
>Audit-Trail:

From: Dima Dorfman <dima@unixfreak.org>
To: dan@freebsdiary.org
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: docs/27004: add example for using PS test code 
Date: Tue, 01 May 2001 21:47:34 -0700

 dan@freebsddiary.org writes:
 > >How-To-Repeat:
 > 	see http://www.freebsd.org/handbook/printing-intro-setup.html
 > 	under section 9.3.1.3.2. Checking Printer Communications
 
 An excerpt from the Handbook:
 
 ---
 9.3.1.3.2.1. Checking a Parallel Printer
 
    This section tells you how to check if FreeBSD can communicate with a
    printer connected to a parallel port.
 
    To test a printer on a parallel port:
     1. Become root with su(1).
     2. Send data to the printer.
           + If the printer can print plain text, then use lptest(1).
             Type:
     # lptest > /dev/lptN
             Where N is the number of the parallel port, starting from
             zero.
           + If the printer understands PostScript or other printer
             language, then send a small program to the printer. Type:
     # cat > /dev/lptN
             Then, line by line, type the program carefully as you cannot
             edit a line once you have pressed RETURN or ENTER. When you
             have finished entering the program, press CONTROL+D, or
             whatever your end of file key is.
             Alternatively, you can put the program in a file and type:
     # cat file > /dev/lptN
             Where file is the name of the file containing the program you
             want to send to the printer.
 ---
 
 Isn't this what you wanted?  Your fix looks just like the last two
 paragraphs combined.  Perhaps the above could be changed to suggest
 that the sample program above that text be used, but I don't think it
 should be duplicated, much less be duplicated right above it!
 
 Regards,
 
 					Dima Dorfman
 					dima@unixfreak.org
 
State-Changed-From-To: open->closed 
State-Changed-By: dd 
State-Changed-When: Wed May 2 00:09:17 PDT 2001 
State-Changed-Why:  
Patch committed as we discussed.  Thanks! 

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