Note: If you got here using a web search engine, you can find the program here.
Disclaimer: Although LWQ Responder seems to work fine, it is distributed "as is". Use at your own risk.
LWQ Responder is a background application that responds to queries from a remote host and gives it the currently selected LaserWriter and zone. There is a utility on our VAX called LWQUERY that does this and is used by BayLIS (the library system) and possibly the VMS gopher client. You can also use it to set SYS$PRINT so that printouts will go to the appropriate printer. LWQ Responder requires MacTCP (or OpenTransport TCP/IP) and should be placed in your startup items folder. It listens on TCP port 251 and when a connection is opened it sends laserwritername@zone to the remote computer then closes the connection. Port 251 may be a "well known port number" for some other service, but it was what our network admin told me to use.
To test LWQ Responder, try telnetting to your Mac using port 251:
$ TELNET/PORT=251 MYMAC.BAYLOR.EDU ! or whatever your IP number is... CCIS Academic@BACKBONE % telnet mymac.baylor.edu 251 CCIS Academic@BACKBONE
You can also use LWQUERY. LWQUERY will query your Mac for the LaserWriter and optionally assign the response to a logical name (but lower case? hmmm...). I also am including a VMS command file (LWQ_SYSPRINT) that will call LWQUERY, translate the response into the appropriate VAX printer queue (only works on our system, though), and set SYS$PRINT to it.
$ LWQ*UERY :== $BU$SPECIAL:[PRINTERS]LWQUERY.EXE $ LWQ MYMAC.BAYLOR.EDU CCIS Academic@BACKBONE $ LWQ MYMAC.BAYLOR.EDU THEPRINTER $ SHOW LOGICAL THEPRINTER "theprinter" = "CCIS Academic@BACKBONE" (LNM$PROCESS_TABLE) $ @LWQ_SYSPRINT.COM $ SHOW LOGICAL SYS$PRINT "SYS$PRINT" = "CCIS_ACADEMIC" (LNM$PROCESS_TABLE) "SYS$PRINT" = "SPECIAL_SERVICES_CENTER" (LNM$SYSTEM_TABLE) $ PRINT TEST.DAT Job TEST (queue CCIS_ACADEMIC, entry 83) started on CCIS_ACADEMIC
If you have any questions, comments, (constructive) criticism, or bug reports please let me know. You can contact me at the address(es) below.
Carl Bell's Web Page
Stuff I've Written
Carl W. BellPhone:
Academic and Research Computing Services
Baylor University Electronic Library
One Bear Place #97148
Waco, TX 76798
(254) 710-4065Baylor's Fine Print:
This software, data and/or documentation contain trade secrets and confidential information which are proprietary to Baylor University. Their use or disclosure in whole or in part without the express written permission of Baylor University is prohibited.
This software, data and/or documentation are also unpublished works protected under the copyright laws of the United States of America. If these works become published, the following notice shall apply:
Copyright © 1992-1995 Baylor UniversityThe name of Baylor University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE, DATA AND/OR DOCUMENTATION ARE PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
All Rights Reserved
When permission has been granted to make copies of this software, data and/or documentation, the above notices must be retained on all copies.
Permission is hereby granted for non-commercial use and distribution of LWQ Responder.