delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/15/11:03:54

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: Print
Date: Fri, 15 Aug 2008 08:02:16 -0700
Message-ID: <BD6B3BD6A3C3EC4FBC45FF024CE1043707619175@WAPRDVSEBE10.gsm1900.org>
In-Reply-To: <g7vokt$np8$1@ger.gmane.org>
References: <g7vokt$np8$1 AT ger DOT gmane DOT org>
From: "Stepp, Charles" <Charles DOT Stepp AT T-Mobile DOT com>
To: <cygwin AT cygwin DOT com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m7FF3p2a005779

Here's a little script I use to send to an HP printer. You can pipe into
it.

#!/usr/bin/ksh
# ----------------------------------------------------------------------
if [[ $# -gt 0 ]]
then
        /usr/bin/lpr -P \\\\asdfasdfasdf.doofer.org/Monsoon $#
else
        cat | /usr/bin/lpr -P \\\\asdfasdfasdf.doofer.org/Monsoon
fi


Charles Stepp

Keep your Eye on the Ball,
Your Shoulder to the Wheel,
Your Nose to the Grindstone,
Your Feet on the Ground,
Your Head on your Shoulders.
Now... try to get something DONE!

-----Original Message-----
From: r [mailto:r DOT trev AT fastwebmail DOT it] 
Sent: Wednesday, August 13, 2008 6:53 PM
To: cygwin AT cygwin DOT com
Subject: Print


When I try to print under cygwin ( a text file too ) with 'lpr' I can
hear the
printer ( Lexmark Z600 Series connected via usb to a simple desktop pc )

move the cursor to be ready for printing but nothing happens.
I tried with text files and .ps too.

'lpr test'
'lpr test2.ps'

It seems that cygwin sends some signal to the printer but, nothing is
printed.
I read cygwin manual, faqs, tried with 'cat test | lpr'
but the result is the same.
I've installed gsview, so tried 'gsprint test2.ps', but here initially
nothing happened ( not even the printer cursor moving as before ). After
1 minute the computer slow and I see that spoolv.exe process, burns 98%
of
cpu usage. The output at prompt is :

$ gsprint test2.ps                                                      
Copyright (C) 2003-2006, Ghostgum Software Pty Ltd.  All Rights
Reserved.
2006-02-24 gsprint 1.9

GPL Ghostscript 8.63 (2008-08-01)

Copyright (C) 2008 Artifex Software, Inc.  All rights reserved.

This software comes with NO WARRANTY: see the file PUBLIC for details.

Page 1, PRINT

                                                             


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019