plw@mgwess.UUCP (Pete Wilson) (09/12/85)
System:
Onyx C8002
Unix SIII
RM/COBOL Ver 1.6B
Problem:
Can't use more than one printer
The user manual I got with my system says that the device
synonyms "PRINTER" and "PRINTER1" both open a pipe to "/usr/bin/lpr".
The synonym "PRINTER2" opens a pipe to "/usr/bin/lpr2". I wrote a
C program called "lpr2" that execs a spooler to another serial printer
("/usr/bin/spr"). However, when I specify "PRINTER2" in a SELECT
statement, the output goes to "lpr" instead of "lpr2". I can use a
shell command 'cat file | lpr2' and the output does go to 'spr'.
Has anyone else seen or had this problem? Better yet, has
anyone come up with a fix or solution?
Pete Wilson
AT&T IS CGBS
Montgomery Works
..!ihnp4!mgnetp!mgwess!plw