query(1M)
query - query AppleTalk Printer and put response into a file.
As shipped in IRIX 6.5.22. Unchanged since IRIX 6.5.
NAME query - query AppleTalk Printer and put response into a file. SYNOPSIS /usr/etc/appletalk/query [-a] [-v] [-P printer ] [-T type ] [-Z zone ] [ number ] queryfile outfile DESCRIPTION The query program sends a PostScript query (from queryfile) to a printer, and places the result in the file outfile. The flags are defined as follows: -a look in all zones (default) -s indicates the printer is serial (see below) -v says be verbose -P says look for printer with this name (default is LaserWriter) -T means look as if it is this type of printer (default is LaserWriter) -Z tells it which zone to look in (default is all zones) The queryfile must exist, and contain a PostScript procedure that will send the required data, terminated by an asterisk. The queryfile must also be readable. The outfile must be writable (if it exists already). This program can used by to to generate a fontlist by using the included query file fontquery. For example: query -P "LaserWriter Plus" /usr/etc/appletalk/fontquery fontlist would generate a file fontlist in the current directory. In order to query a serial printer, the input and output must be redirected. For example: (stty 9600 -echo -lcase tabs -nl tandem litout new ; \ query -s /usr/etc/appletalk/fontquery fontlist ) \ < /dev/tty01 > /dev/tty01 Would query a serial printer running at 9600 baud attached to tty01 for its fontlist. The stty options may have to be adjusted for your particular printer. CAVEATS query is no longer used for anything in K-Spool. It is included soley for backward compatibility and as a tool for custom applications.