HP3000-L Archives

October 1999, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Wirt Atmar <[log in to unmask]>
Reply To:
Date:
Mon, 25 Oct 1999 17:18:46 EDT
Content-Type:
text/plain
Parts/Attachments:
text/plain (42 lines)
I just wrote a moment ago:

> Charles asks:
>
>  > Is there a way to print output from the HP3000 to two logical devices, if
>  > user has specified a single device?  Or is there a way to send all out to
>  > logical devices concurrenly?
>
>  Yes.

I obviously answered the question for physical devices, skipping over the
question of logical devices. Thus, in one sense, let me say in honor of the
memory of the late Rosanna Danna: Nevermind.

My response was dictated by absolute concurrency, which is the quality that I
read into the question.

However, saying that, let me answer a different question and say that a
"logical device" is really nothing much more than a spooler file -- a file
that's been equated to a hardware device. If you can figure out some
mechanism to load up two spooler files simultaneously, you've done what you
want. The simplest way is to have your program run twice, printing to one
printer first and then the second. A more complicated way to do what you wish
is to duplicate your print statements in your program, interleaving their
prints, printing first to one printer and then the second. Another way is to
print your output just once, to an intermediate disc file and then duplicate
that file twice into two spooler files.

In any of these situations, the two printers won't print "concurrently" (but
that may not be a matter of true consideration). They will print
approximately simultaneously, as soon as the respective spooler files are
closed -- and the two printers will have completely independent flow control,
paper out & jam recovery, everything that MPE's spooler was designed to do
for you.

The trick in all of this is not think of a "logical device" (a spool file) as
anything more complicated than any other form of file. As soon as you close
it, that file is put into the queue for that particular printer and will
begin printing as soon as its turn comes up.

Wirt Atmar

ATOM RSS1 RSS2