From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mailout11.t-online.de (mailout11.t-online.de [194.25.134.85]) by sourceware.org (Postfix) with ESMTPS id 4BB483858D1E for ; Mon, 19 Jun 2023 20:09:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4BB483858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=t-online.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=t-online.de Received: from fwd78.dcpf.telekom.de (fwd78.aul.t-online.de [10.223.144.104]) by mailout11.t-online.de (Postfix) with SMTP id AA2F125CA3 for ; Mon, 19 Jun 2023 22:09:19 +0200 (CEST) Received: from [192.168.178.26] ([87.154.44.34]) by fwd78.t-online.de with (TLSv1.3:TLS_AES_256_GCM_SHA384 encrypted) esmtp id 1qBLBe-2mE7Ae0; Mon, 19 Jun 2023 22:09:18 +0200 Message-ID: <7ee6a27e-22b0-8409-12be-224dc7a1fd93@t-online.de> Date: Mon, 19 Jun 2023 22:09:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: Use Real LPT port with Cygwin? Content-Language: en-US To: cygwin@cygwin.com References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TOI-EXPURGATEID: 150726::1687205358-097C5714-EABF3AB2/0/0 CLEAN NORMAL X-TOI-MSGID: 0be7fed0-c50e-4ed1-80c5-c80e54ff6b8d X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_DMARC_STATUS,KAM_LAZY_DOMAIN_SECURITY,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Am 18.06.2023 um 21:35 schrieb tlake--- via Cygwin: > I can use an emulated LPT port to a shared network printer from Cygwin but > I'd like to print to a local LPT port also. > The local printer has no IP address. Is it possible to print to a physical > LPT port?> > > If I do this: > ls > LPT1: > a file called LPT1: is created on the hard drive rather than sending the > data to the printer on LPT1: The fact that works at all is a remarkably ancient quirk that made it into MS-DOS by way of it trying to emulate even older quirks from CP/M. We're talking 1970s computing, there. Because the dogma of backwards compatibility is so strong in Seattle, this quirk is still available in Windows to this very day. But as it's a massive DOS-ism that really does not fit into he POSIX world at all, it's not entirely surprising that it doesn't reproduce in a Cygwin shall, just like that --- Linux doesn't do that, either. What you do get instead is a Unix-style /dev tree of device pseudo-files. I might be cool if that gave you a /dev/lpt1 on Cygwin, but alas, I don't think it does. What you do get is a /proc/sys/DosDevices/Global tree. A printer, if existing as a Windows device "LPT1", should show up there as a character device.