Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* EOJ handling on DEClaser 1152
@ 1995-04-20  4:00 Andre Beck
  1995-04-20  4:00 ` Andre Beck
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Beck @ 1995-04-20  4:00 UTC (permalink / raw)


Hi,

I'm getting severe problems with EOJ handling on the DEClaser 1152
printer (PS level 2). The printer is connected via a LATprint terminal
server device on its serial port. It seems to _need_ a Ctrl-D character
to indicate EOJ. Furthermore, I need to filter out existing Ctrl-D chars
in PS output f.i. from PCs, because a leading Ctrl-D would cause ln03rof
to not detect the leading %! of postscript - and I hate PS source listings :-|

I wrote a script which filters out ^D, calls ln03rof, and outputs a
leading and trailing ^D to get EOJ handling correct. What happens:

1) Output filter only: This seemed to work well, until some jobs queue
   up. Then I suddenly get PS source listings again. Dark memory serves
   that of is called once for a number of jobs, which would be evil for me.

2) Input filter only: This works well on the input side, but the emitted
   ^D characters don't pass to the printer

3) Input & Output filter: The whole thing locks up. For some reason, the
   of gets never called (I'm sure, it would write a lot of stuff to
   /dev/console if ever invoked).

My questions: How does one get EOF handling correct with the Ultrix printing
system and a PS printer which requires ^D for EOJ ?

Alternatively, can anyone explain why this was no problem with former DEC PS
printers (connected to real DEC terminal servers). Do they sense EOJ in some
hardware way, f.i. on DTR drop or similar ? If so, can the 1152 be configured
to do this as well ? Or is it doing this anyway, and the LATprint device either
is not setup to drop DTR or whatever correctly or (worse) cannot be setup to
do so in the first place ?

Appreciate any help,

Thanx,
Andre.
--
+-o-+--------------------------------------------------------+-o-+
| o |		    \\\- Brain Inside -///		     | o |
| o |			^^^^^^^^^^^^^^			     | o |
| o | Andre' Beck (ABPSoft)          Andre_Beck@ibh-dd.de    | o |
+-o-+--------------------------------------------------------+-o-+



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

* Re: EOJ handling on DEClaser 1152
  1995-04-20  4:00 EOJ handling on DEClaser 1152 Andre Beck
@ 1995-04-20  4:00 ` Andre Beck
  1995-04-25  4:00   ` Michael Hohmuth
  0 siblings, 1 reply; 4+ messages in thread
From: Andre Beck @ 1995-04-20  4:00 UTC (permalink / raw)


Little correction:

Andre Beck (beck@duck.ibh-dd.de) wrote:

|> 3) Input & Output filter: The whole thing locks up. For some reason, the
|>    of gets never called (I'm sure, it would write a lot of stuff to
|>    /dev/console if ever invoked).

It's if which is never called. Just for fun, I entered /usr/lib/lpdfilters/xf
for the of, and could watch this script (why is it csh btw ?) and the /bin/cat
started from it hanging around forever. The program named under if is NOT
invoked. Occasionally, I had lines like

sh: /dev/console: cannot create

in my lperr logs. Are the filters started chroot(2)'ed or what the hack
is happening here ?

Clueless,
Andre.
--
+-o-+--------------------------------------------------------+-o-+
| o |		    \\\- Brain Inside -///		     | o |
| o |			^^^^^^^^^^^^^^			     | o |
| o | Andre' Beck (ABPSoft)          Andre_Beck@ibh-dd.de    | o |
+-o-+--------------------------------------------------------+-o-+



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

* Re: EOJ handling on DEClaser 1152
  1995-04-20  4:00 ` Andre Beck
@ 1995-04-25  4:00   ` Michael Hohmuth
  1995-04-26  4:00     ` Andre Beck
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Hohmuth @ 1995-04-25  4:00 UTC (permalink / raw)


In article <3n5gqd$6n1@micky.ibh-dd.de>,
Andre Beck <beck@duck.ibh-dd.de> wrote:

> Little correction:
> 
> Andre Beck (beck@duck.ibh-dd.de) wrote:
> 
> |> 3) Input & Output filter: The whole thing locks up. For some reason, the
> |>    of gets never called (I'm sure, it would write a lot of stuff to
> |>    /dev/console if ever invoked).
> 
> It's if which is never called. Just for fun, I entered /usr/lib/lpdfilters/xf
> for the of, and could watch this script (why is it csh btw ?) and the /bin/cat
> started from it hanging around forever. [...]

Are you using "Xf" and similiar extended Ultrix printcap capabilities?
I seem to remember that "if" will not be called if "Xf" is used, but I
don't know for sure.

(I should have written down this when I once found out...  There seems
to be little or no useful documentation for this stuff.)

Michael
-- 
Email: hohmuth@inf.tu-dresden.de
WWW:   http://www.inf.tu-dresden.de/~mh1/



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

* Re: EOJ handling on DEClaser 1152
  1995-04-25  4:00   ` Michael Hohmuth
@ 1995-04-26  4:00     ` Andre Beck
  0 siblings, 0 replies; 4+ messages in thread
From: Andre Beck @ 1995-04-26  4:00 UTC (permalink / raw)


Michael Hohmuth (hohmuth@irs.inf.tu-dresden.de) wrote:
|> > 
|> > It's if which is never called. Just for fun, I entered /usr/lib/lpdfilters/xf
|> > for the of, and could watch this script (why is it csh btw ?) and the /bin/cat
|> > started from it hanging around forever. [...]

|> Are you using "Xf" and similiar extended Ultrix printcap capabilities?
|> I seem to remember that "if" will not be called if "Xf" is used, but I
|> don't know for sure.

|> (I should have written down this when I once found out...  There seems
|> to be little or no useful documentation for this stuff.)

I don't remember that I defined any of the extented features (the Level 2
printer doesn't deal with DECs printserver libs that well). However, I
tried the setup with an input filter only again, and now (surprise, surprise)
it works as expected - the Ctrl-D characters pass to the printer. There are
other issues with this LAT thing, especially:

 - I used two printer entries which in turn used the same lat tty. Now it
   looks as if lpd doesn't do any tty locking, and if the same tty is opended
   twice, it just has a problem. If you use different LAT ttys, a second access
   to the same address is detected by LAT itself (however, I don't know why the
   error return code is "permission denied" in this case).

- I know now that LATprints definately don't do any other flow control except
  XON/XOFF

- On the other hand, I also know that the DEClaser 1152 doesn't detect EOJ
  in some hardware way, even if connected directly to a workstations serial
  port.

(just in case that this is of interest to somebody out there ;)

--
+-o-+--------------------------------------------------------+-o-+
| o |               \\\- Brain Inside -///                   | o |
| o |                   ^^^^^^^^^^^^^^                       | o |
| o | Andre' Beck (ABPSoft) beck@ibh-dd.de XLink PoP Dresden | o |
+-o-+--------------------------------------------------------+-o-+



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

end of thread, other threads:[~1995-04-26  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-20  4:00 EOJ handling on DEClaser 1152 Andre Beck
1995-04-20  4:00 ` Andre Beck
1995-04-25  4:00   ` Michael Hohmuth
1995-04-26  4:00     ` Andre Beck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox