9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] man -t cat|lp takes 4min
@ 2005-05-11 14:52 west9
  2005-05-11 23:20 ` boyd, rounin
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: west9 @ 2005-05-11 14:52 UTC (permalink / raw)
  To: 9fans


With, for example, man -t cat|lp the printer light starts blinking right after
 <return>. It then takes about 4 minutes before printing begins; the output is proper.

The action is the same with or without the change to lpdspool suggested in the 
 *printer configuration* document.

 This problem appeared about 6 months ago, possibly after a replica/pull.
 Before that I noticed no delay in printing man pages this way.

 The printer is an NEC 1800N with 12MB memory, driven via lpt. It's a postscript printer.

  Suggestions, please.

Thanks,
 -Tom


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: [9fans] man -t cat|lp takes 4min
@ 2005-05-12 21:38 west9
  2005-05-13  9:43 ` C H Forsyth
  0 siblings, 1 reply; 11+ messages in thread
From: west9 @ 2005-05-12 21:38 UTC (permalink / raw)
  To: 9fans

>Try  -dstdout >/tmp/cat.ps
>cat /tmp/cat.ps >/dev/lpt1data

Here are the print times for some cases:

Base case, about 500 char plain text: 25 sec

Problem case:  man -t cat|lp : 4 minutes ; But printer light starts blinking a
 few secs after <cr>

Alt case:  man -t cat>/tmp/cat.ps;cat /tmp/cat.ps>/dev/lpt1data: 40 sec., but
 printing is in times font, which is native to the printer. 
 cat /tmp/cat.ps|page yields the man page in the usual man font.

>I wonder if lp is waiting for something to time out.  You might try
>`lp -D' and see if that tells you anything.

 I used the -D option and didn't see any trouble, but that might not mean much,
 given my level. I don't even know how to capture it easily, given the number of apostrophes it contains.

 Could it be that the fonts are being sent/requested unnecessarily?

Thanks to all,

 -Tom


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

end of thread, other threads:[~2005-05-13  9:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-11 14:52 [9fans] man -t cat|lp takes 4min west9
2005-05-11 23:20 ` boyd, rounin
2005-05-11 23:35 ` Russ Cox
2005-05-12  1:59 ` geoff
2005-05-12  6:20   ` Bruce Ellis
2005-05-12  6:26     ` Russ Cox
2005-05-12  6:29       ` Bruce Ellis
2005-05-12 17:53         ` Jack Johnson
2005-05-13  8:24           ` Bruce Ellis
2005-05-12 21:38 west9
2005-05-13  9:43 ` C H Forsyth

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 NNTP newsgroup(s).