Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site mgwess.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!mgnetp!mgwess!plw From: plw@mgwess.UUCP (Pete Wilson) Newsgroups: net.micro Subject: RM/COBOL and printers Message-ID: <14947@mgwess.UUCP> Date: Wed, 11-Sep-85 21:25:03 EDT Article-I.D.: mgwess.14947 Posted: Wed Sep 11 21:25:03 1985 Date-Received: Thu, 12-Sep-85 11:09:05 EDT Organization: AT&T Information Systems - Montgomery Illinois Lines: 22 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