This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Printing under Cygwin on W2K

On Thu, 3 Jun 2004, Chris Carlson wrote:

> According to the documentation, the following should print on the
> default printer:
>         bash$  cat myfile.txt > PRN
> What I find is that a new file is created named "PRN".

Known problem.  There's a patch pending for this -- once it's checked in,
this functionality should be available again.  Until then, use lpr from
the cygutils package...

> 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".

> BTW: uname -a returns:
> CYGWIN_NT-5.0 jackal 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown
> unknown Cygwin
> Thanks in advance.
> Chris Carlson
> iStor Networks, Inc.

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]