From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2978 invoked by alias); 27 Mar 2014 09:50:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2966 invoked by uid 89); 27 Mar 2014 09:50:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Received: from smtpback.ht-systems.ru (HELO smtpback.ht-systems.ru) (78.110.50.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 27 Mar 2014 09:50:17 +0000 Received: from [91.76.98.252] (helo=darkdragon.lan) by smtp.ht-systems.ru with esmtpa (Exim 4.80.1) (envelope-from ) id 1WT6wt-0007O0-J5; Thu, 27 Mar 2014 13:50:11 +0400 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 27 Mar 2014 09:49:32 -0000 Date: Thu, 27 Mar 2014 12:40:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <258119112.20140327134932@yandex.ru> To: David Masterson , cygwin@cygwin.com Subject: Re: LPR problem ? In-Reply-To: <86d2h83z8y.fsf@gmail.com> References: <86lhw4yzzh.fsf@gmail.com> <681723866.20140326234117@yandex.ru> <8661n0r8xg.fsf@gmail.com> <1803838655.20140327014037@yandex.ru> <86d2h83z8y.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00475.txt.bz2 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)? Supposed to be in %SystemRoot%/System32/lpr.exe Not using that Vista clone myself. > What exactly is it used for? How is it used? Same as Cygwin's lpr... Sending jobs to LPD-enabled printer. lpr /? > I think I found it in a hidden temp directory, but I don't have any > clues on how it is used. Shouldn't be "in a temp directory"... >>> 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. cat | lpr ^L^D^D Should spit the sheet out of the printer at the very least. That assuming this is a hardware printer that understand basic English. -- WBR, Andrey Repin (anrdaemon@yandex.ru) 27.03.2014, <13:19> Sorry for my terrible english... -- 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