public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Rick Rankin <rick_rankin@yahoo.com>
To: Brian Salter-Duke <b_duke@octa4.net.au>,
	"Larry Hall \(RFK Partners, Inc\)" <lhall@rfk.com>
Cc: cygwin@cygwin.com
Subject: Re: Printing locally
Date: Tue, 05 Mar 2002 08:17:00 -0000	[thread overview]
Message-ID: <20020305161658.72870.qmail@web10506.mail.yahoo.com> (raw)
In-Reply-To: <20020305185137.A1292@BSALTERDUKE1>

What kind of printer is it? If, for example, it's a Postscript printer and you
cat plain text to it, you will get nothing. You would need to use enscript or
a2ps to convert the plaint text to Postscript. Printing through Notepad would
do this for you.

Just a thought.

--Rick
--- Brian Salter-Duke <b_duke@octa4.net.au> wrote:
> On Mon, Mar 04, 2002 at 11:22:51AM -0500, Larry Hall (RFK Partners, Inc)
> wrote:
> > 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
> 
> I have noticed that if you have the printer window open, it has a brief
> message saying the file has no name but is being spooled. Nothing
> prints.
>  
> > and
> > 
> > cat file.txt > //<machine name>/<printer share name>
> 
> Does this work only if the printer is remote. I replaced <machine name>
> by BSALTERDUKE1 which is what the printer test page saying machine name
> is and <printer share name> by CanonBJC-1000SP which is what the same
> page says is the printer name. The printer is local. It reports that it
> can not find that node.
> 
> > 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.
> 
> I tried all sorts of options and got no output with any of them.
> 
> I private message from someone else suggested:-
> 
> notepad /p file.txt
> 
> This works!
>  
> Cheers, 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/
> 


__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.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/

  reply	other threads:[~2002-03-05 16:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2002-03-05 13:07       ` Larry Hall (RFK Partners, Inc)
  -- strict thread matches above, loose matches on Subject: below --
2002-03-06 15:03 Heribert Dahms
2002-03-05 15:39 Karl M
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020305161658.72870.qmail@web10506.mail.yahoo.com \
    --to=rick_rankin@yahoo.com \
    --cc=b_duke@octa4.net.au \
    --cc=cygwin@cygwin.com \
    --cc=lhall@rfk.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).