Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: Date: Mon, 07 Jun 2004 08:53:27 -0500 From: "Steven Read" To: Subject: Re: PRINTER variable not exported in /etc/profile was: Printing under Cygwin on W2K Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline X-Scanned-By: MIMEDefang 2.35 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i57DrrXT013991 Is there a "secret handshake" for http://... style printers? My printer is an IPP connection and lpr gives me an error message saying it cannot find http:\123.456.789.123:80\ipp. I have tried several different combinations of forward and back slashes but to no avail. I am running Cygwin 1.5.9(0.112/4/2) on a W2K box with Service Pack 4 plus a bunch of hotfixes. Steven Read - 812/237-3362 - s-read AT indstate DOT edu Indiana State University >>> Olaf Föllinger 06/04/2004 3:43:09 AM >>> On Thu, Jun 03, 2004 at 01:39:03PM -0400, Igor Pechtchanski wrote: > On Thu, 3 Jun 2004, Chris Carlson wrote: > > > Also according to the documentation, cygwin understands the double-slash > > form used in Windows. Thus the following should work: > > > > bash$ cat myfile.txt > //Dc1irv/laser1 > > > > This returns: > > > > bash: //Dc1irv/laser1: No such host or network path > > Nope, that shouldn't work. I don't think you can redirect output to a > printer name even from the Windows console, much less from Cygwin. In > any case, Cygwin doesn't treat printer shares as devices. > > > So, what is the proper method for printing under cygwin? > > Either "lpr" or, if you want to get fancier, "a2ps" or "enscript". > Igor lpr works just fine here with a minor problem: $ lpr textfile.txt lpr: no printer specified though the printer is specified in /etc/profile. But the printer variable isn't exported there so lpr cannot find it. Should this be fixed? Gruss Olaf Föllinger -- Olaf Föllinger Senior Consultant IT S.E.S.A. Software und Systeme AG -- 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/ -- 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/