source: trunk/athena/bin/getcluster/getcluster.8 @ 5481

Revision 5481, 1.6 KB checked in by lwvanels, 33 years ago (diff)
new directory structure
Line 
1.TH GETCLUSTER 8 "20 April 1987"
2.SH NAME
3getcluster \- retrieve service cluster info from Hesiod as environment vars
4.SH SYNOPSIS
5getcluster [-b] hostname version
6
7# C shell example
8.br
9getcluster `hostname` 5.3 > file; source file
10
11# Bourne shell example
12.br
13getcluster -b `hostname` 5.3 > file; . file
14
15.PP
16.SH DESCRIPTION
17.I Getcluster
18queries the Hesiod database for service cluster information associated
19with the workstation on which it is run.  It writes a set of environment
20variable assignments on its standard output in a format acceptable
21to the C shell, or, if the -b flag is present, in Bourne shell syntax.
22If any errors are encountered in querying the Hesiod database or
23during the output of the information, the standard
24output is truncated to size 0, ensuring that partial data will not
25remain in the file.
26.I Getcluster
27also returns an exit status of -1 if any errors were encountered.
28
29.I Getcluster
30is usually invoked from a suitable shell script in /etc/rc
31to retrieve environment variables which will be used by applications during
32the session.  These are placed, if successful, in the files
33.I /etc/athena/clusterinfo
34and
35.I /etc/athena/clusterinfo.bsh
36to be accessed by the C shell in a user's .login file
37and the Bourne shell in a user's .profile, respectively.
38It may also be invoked directly by any user.
39.PP
40Getcluster uses the Hesiodnametypes "clustername" and "cluster".
41.SH FILES
42/etc/athena/clusterinfo
43/etc/athena/clusterinfo.bsh
44.SH "SEE ALSO"
45`Hesiod - Project Athena Technical Plan -- Name Service'
46.SH AUTHOR
47Steve Dyer, IBM/Project Athena
48.br
49Copyright 1987, Massachusetts Institute of Technology
50.br
51.SH BUGS
Note: See TracBrowser for help on using the repository browser.