Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ query(1M) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



     QUERY(1M)        K-Spool by Xinet (9/29/94 8.1)         QUERY(1M)



     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. Page 1 (printed 3/5/98)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026