public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: Printing locally
@ 2002-03-05 15:39 Karl M
  0 siblings, 0 replies; 13+ messages in thread
From: Karl M @ 2002-03-05 15:39 UTC (permalink / raw)
  To: cygwin

Hi All...

Having watched this thread, I decided to give the printing a try (in the 
past, I have only done Windows based printing).

If I do

cat file > prn

or

cat file > //machine/DeskJet

from a bash shell the file is sent to the printer, but the printer gets an 
error (flashing error light on the printer) that must be cleared before the 
file prints. After clearing the error, the page I printed for testing is 
printed.

If I do

print file

from a bash shell, it prints just fine.

My system is a Win2kpro with everything current as of this morning.

Thanks,

Karl

>From: "Larry Hall (RFK Partners, Inc)" <lhall@rfk.com>
>To: Brian Salter-Duke <b_duke@octa4.net.au>,        fergus at bonhard dot 
>uklinux dot net <fergus@bonhard.uklinux.net>
>CC: cygwin@cygwin.com
>Subject: Re: Printing locally
>Date: Mon, 04 Mar 2002 11:22:51 -0500
>
>At 07:24 PM 3/3/2002, Brian Salter-Duke wrote:
> >On Sun, Mar 03, 2002 at 10:49:53AM -0000, fergus at bonhard dot uklinux 
>dot net wrote:
> > > What about this? Any good?
> > > If the file a.txt is DOS terminated, try
> > >     cp a.txt prn
> > > OR
> > >     cat a.txt > prn
> > > and if a.txt is Unix-terminated, try
> > >     cat a.txt | unix2dos > prn
> > > Fergus
> >
> >This was a good suggestion but it still does not work. It just does
> >nothing as does directing the output to PRINT or LPT1.
> >
> >The file a.txt if put into Notepad either in dos or unix format prints
> >fine.
>
>
>Hm, then there must be some issue locally.  I have used both
>
>cat file.txt > prn
>
>and
>
>cat file.txt > //<machine name>/<printer share name>
>
>with no problems in the past.  If one or both of these don't work for you,
>you may be stuck trying to debug it.  In anticipation of your next 
>question,
>you might try running one or both of these with 'strace'.  See strace 
>--help
>for more details of the options.  The output may give you an idea of where
>things are going wrong for you.
>
>
>
>Larry Hall                              lhall@rfk.com
>RFK Partners, Inc.                      http://www.rfk.com
>838 Washington Street                   (508) 893-9779 - RFK Office
>Holliston, MA 01746                     (508) 893-9889 - FAX
>
>
>--
>Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>Bug reporting:         http://cygwin.com/bugs.html
>Documentation:         http://cygwin.com/docs.html
>FAQ:                   http://cygwin.com/faq/
>


_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* RE: Printing locally
@ 2002-03-06 15:03 Heribert Dahms
  0 siblings, 0 replies; 13+ messages in thread
From: Heribert Dahms @ 2002-03-06 15:03 UTC (permalink / raw)
  To: 'Karl M', cygwin

Hi Karl,

does your file have a formfeed at end?
If not, you may create a helper file and try

cat file ff > prn


Bye, Heribert (heribert_dahms@icon-scm.com)

> -----Original Message-----
> From:	Karl M [SMTP:karlm30@hotmail.com]
> Sent:	Wednesday, March 06, 2002 00:39
> To:	cygwin@cygwin.com
> Subject:	Re: Printing locally
> 
> Hi All...
> 
> Having watched this thread, I decided to give the printing a try (in the 
> past, I have only done Windows based printing).
> 
> If I do
> 
> cat file > prn
> 
> or
> 
> cat file > //machine/DeskJet
> 
> from a bash shell the file is sent to the printer, but the printer gets an
> 
> error (flashing error light on the printer) that must be cleared before
> the 
> file prints. After clearing the error, the page I printed for testing is 
> printed.
> 
> If I do
> 
> print file
> 
> from a bash shell, it prints just fine.
> 
> My system is a Win2kpro with everything current as of this morning.
> 
> Thanks,
> 
> Karl
>  
	[Heribert]  [snip] 


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Printing locally
@ 2002-03-03  2:50 fergus at bonhard dot uklinux dot net
  2002-03-03 16:25 ` Brian Salter-Duke
  0 siblings, 1 reply; 13+ messages in thread
From: fergus at bonhard dot uklinux dot net @ 2002-03-03  2:50 UTC (permalink / raw)
  To: b_duke; +Cc: fergus, cygwin

What about this? Any good?
If the file a.txt is DOS terminated, try
    cp a.txt prn
OR
    cat a.txt > prn
and if a.txt is Unix-terminated, try
    cat a.txt | unix2dos > prn
Fergus


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Printing locally.
@ 2002-03-01 23:23 Brian Salter-Duke
  2002-03-01 23:44 ` Paul McFerrin
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Salter-Duke @ 2002-03-01 23:23 UTC (permalink / raw)
  To: cygwin

Gygwin is a great product and it allows me to do much unix work but on
top of windows. I am essentially a unix person. 

Now I am trying to simply print text mutt mail messages to a local
printer plugged into the back of my machine, which is running
Windows2000.  I have read the FAQ and searched the mailing list
archives. Most of what I find refers to remote printing or clever stuff
using a2ps etc. My problem is that I do not know how to refer to the
printer. This is probably my lack of knowledge of Win2000.

Here is the bit in the FAQ:-

FAQ>Alternatively, on NT, you can use the Windows `print' command. (It does
FAQ>not seem to be available on Win9x.) Type

FAQ>bash$ print /\?

FAQ>for usage instructions (note the `?' must be escaped from the shell).

OK, I do this and get:-

$ PRINT /\?
Prints a text file.

PRINT [/D:device] [[drive:][path]filename[...]]

   /D:device   Specifies a print device.

OK, so I have PRINT. If I type "PRINT a.txt" where a.txt is a simple text file,
it says it has printed it, but nothing prints. What does /D:device mean?
I can find nothing to help me on this.

FAQ>Finally, you can simply `cat' the file to the printer's share name:

FAQ>bash$ cat myfile > //host/printer

What does //host/printer mean? I have seen this with remote printing,
but I just want to print to the default printer plugged into the back of
my machine. It is called "CanonBJC-1000SP". How do I refer to it?

I would much appreciate some help on this point.

Regards, Brian.
-- 
           Brian Salter-Duke (Brian Duke) b_duke@octa4.net.au  
Honorary Fellow in Chemistry, NT University, Darwin, NT 0909, Australia.
 Phone 08-89881600.    Fax 08-89881302.    http://lacebark.ntu.edu.au/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2002-03-06 22:57 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-05 15:39 Printing locally Karl M
  -- strict thread matches above, loose matches on Subject: below --
2002-03-06 15:03 Heribert Dahms
2002-03-03  2:50 fergus at bonhard dot uklinux dot net
2002-03-03 16:25 ` Brian Salter-Duke
2002-03-04  8:26   ` Larry Hall (RFK Partners, Inc)
2002-03-05  1:24     ` Brian Salter-Duke
2002-03-05  8:17       ` Rick Rankin
2002-03-05 13:07       ` Larry Hall (RFK Partners, Inc)
2002-03-01 23:23 Brian Salter-Duke
2002-03-01 23:44 ` Paul McFerrin
2002-03-02 18:54   ` Brian Salter-Duke
2002-03-02 20:40     ` David Means
2002-03-03  0:27       ` Brian Salter-Duke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).