atchoprn(1) atchoprn(1)
NAME
at_cho_prn - choose a user's default printer on the network
SYNOPSIS
atchoprn [-f network]
DESCRIPTION
atchoprn interrogates the network to find out what
printers have been registered. Since it is possible to have
multiple AppleTalk networks attached to a system, this
utility needs to know the path in the file system to the
desired network. Using
-f network
will select the network network. For example:
-f /dev/appletalk2
will choose the second AppleTalk network that is attached to
the system. If -f - is used, then standard input will be
used.
If the -f flag option is not used, there is a sequence of
other locations which are looked at for the network path.
First, if there is an environmental variable ATNETWORK, its
value will be used as the path to the desired network.
If no ATNETWORK variable exists, then the environmental
variable ATDIR is used as a path to a directory that should
contain a file called .appletalkrc. The first line in that
file is the path to the desired network.
If no ATDIR variable is found, the user's home directory is
searched for the .appletalkrc file.
If all of the above attempts fail, then the default path is
used, /dev/appletalk.
atchoprn then displays the printers on that network, along
with a prompt for you to enter the item number corresponding
to your choice. The entry will then be stored in the
environmental variable, ATPRN, for use by other utilities.
EXAMPLE
atchoprn
might print out the following on /dev/appletalk:
Page 1 (last mod. 1/16/87)
atchoprn(1) atchoprn(1)
ITEM OBJECT TYPE ZONE NET ND SK
1: Writer2 LaserWriter * 5678 d3 ea
2: john's LaserWriter * 5678 e4 ea
enter choice?
where OBJECT is the name of the registered printer; TYPE is its
type; ZONE is its zone name (where * designates the current
zone); NET is its net number; ND is its node number; and SK is
its socket number. The latter three numbers are in hexadecimal
format.
SEE ALSO
at_lp(1),
AppleTalk programmer's guide in Oreo Network Applications
Programming.
Page 2 (last mod. 1/16/87)