386ix and Parallel Printers

Leslie Mikesell les at chinet.chi.il.us
Tue May 8 07:54:15 AEST 1990


In article <7813 at dmshq.mn.org> pnessutt at dmshq.mn.org (Bob Monio) writes:
[Re: spooling vs. writing to device]
>Agreed.  But remember that it's a rather rough job to provide
>portability in a program across different versions of spoolers on
>different flavors of UNIX.  It's made harder in case of the above
>mentioned program when the 4GL that is being used doesn't support
>spooling of output at all...  (ie: PROGRESS)

Rough???  All you have to do is allow the installer to specify the
name of a program to pipe the output to, and let popen() handle
the details.  I have yet to see a situation where this is not the
correct way to handle printing under unix, although there are
rare cases where it would be useful to offer direct device access
in addition (say you need to hand-feed paper and need to control
output without leaving the application).  Also the application should
keep in mind that the output may be coming to the terminal's aux
port and thus should not be done in the background unless the
installer sets it up that way.  If you are too lazy to read a
per-user set-up file, at least leave PATH alone so that the program
executed as the pipe can be modified per-user.

Les Mikesell
  les at chinet.chi.il.us



More information about the Comp.unix.i386 mailing list