delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/03/27/02:57:54

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; q=dns; s=default; b=wGnCKVstgufaHkm3
C+cwdzppu0Y8QeD8fbRHxzD8Nc/pnAVa+/YT7v1X1bXCIXrGrwNHvTNvZqSEZ+WJ
gYBI+PyBOPqiBrtFEXCJCHuFL1Eq7yRdwjd19kPwIX9DPcBq9FKQ3xiv7/9Bc124
9ds51gJXVKBnx8POsjiKK4Vv3Do=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type; s=default; bh=E3zWmgyPELIFDZiPgOiAfn
TWJcE=; b=U7UCDlVZXJTeL/tmIDZKgi58NrdOCkyfARoQecHwlLmXvfxdQW82D2
2gSj2L9eALNM/EQ5IcL2gXZ5q3DHITazc42kseZPA6+G4icSs3knQybIsO873XiU
w7wlxFpvFUei9kyQnViyiRZV7333n9dsNcSOUkY6OzFK2hsnPVNMk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: David Masterson <dsmasterson AT gmail DOT com>
Subject: Re: LPR problem ?
Date: Wed, 26 Mar 2014 23:57:17 -0700
Lines: 43
Message-ID: <86d2h83z8y.fsf@gmail.com>
References: <86lhw4yzzh DOT fsf AT gmail DOT com> <681723866 DOT 20140326234117 AT yandex DOT ru> <8661n0r8xg DOT fsf AT gmail DOT com> <1803838655 DOT 20140327014037 AT yandex DOT ru>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (cygwin)
X-IsSubscribed: yes

Andrey Repin <anrdaemon AT yandex DOT ru> writes:

> Greetings, David Masterson!
>> Windows has an 'lpr' command?!?
>
> Since the moment it gained TCP/IP support. Part of standard protocol
> stack.  Along with ftp, telnet and other stuff.  And not to disappoint
> anyone, but I've found that windows LPR works better in certain cases.

Hmmmm.  Where (on Windows 8.1) is this 'lpr' command (or where is it
supposed to be)?  What exactly is it used for?  How is it used?

I think I found it in a hidden temp directory, but I don't have any
clues on how it is used.

>> It seems to be a Dell dialog box possibly produced by the printer
>> driver.  I get it for anything that I try to print out to the printer
>> under Windows.  It pops up in the lower right of the screen and tells
>> you how far the printout has progressed as well as whether the ink
>> cartridge is running out.  This, at least, gives me the clue that the
>> 'lpr' command is "kicking" the printer if not quite kicking it
>> properly.

> No, but I can quite imagine this kind of annoying boxes. Epson do that
> alot, so does HP last six or so years.  This just confirms that you
> probably printing to localhost.  The answer could be that the
> resulting job missing something critical, and is refused either by
> printer driver or the printer itself.  If you print something from
> Windows right after this failure of an experiemnt, don't your LPR'd
> job gets out as well?  Another thought is that LPR works with printer
> on a low level.  Which means... the document you are sending to print
> must be preformatted in a language the printer understand. I.e. it
> must be a plain text, PS, PCL or something of that kind.

I had thoughts along this line too (missing formfeed at end of file?),
but haven't devised a test yet.  Thought I might try the Windows 'lpr'
you spoke of to see if it worked better.  The 'print' command seems to
work, but I'm not sure if it has conversion problems (CRLF -> LF or vice
versa) and, so, causes strange wraps in the output.  If it had more
output controls, I'd probably just settle for that.

-- 
David Masterson


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

- Raw text -


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