[14385] in Athena Bugs
sun4 7.7W: getcluster
daemon@ATHENA.MIT.EDU (Brett David Rosen)
Fri Jun 14 15:54:47 1996
To: bugs@MIT.EDU
Date: Fri, 14 Jun 1996 15:54:42 EDT
From: Brett David Rosen <bdrosen@MIT.EDU>
System name: cogsworth
Type and version: SPARC/5 7.7W (1 update(s) to same version)
Display type: cgthree
What were you trying to do?
getcluster -b cogsworthy 7.7
No Hesiod information available for 7.7
getcluster -b 9.0 cogsworth
No Hesiod information available for cogsworth
getcluster -d mr-toad 7.7
hangs until stdin is closed.
As well, I get the following in my console window on login:
09:03 /etc/athena/save_cluster_info: hostname: not found
09:03 Usage: getcluster [-b] [-d] hostname version
09:03 Usage: getcluster [-b] [-d] hostname version
What's wrong:
It looks like the error message is wrong:
hp = hes_resolve(argv[0], "cluster");
if (hp == NULL)
{
fprintf(stderr, "No Hesiod information available for %s\n", argv[1]);
return(1);
}
I think that should be argv[0]
It looks like the -d flag is undocumented in the man page.
However, it looks like it causes the program to read input
from stdin and use that instead.
It looks like /etc/athena/save_cluster_info cannot find
the hostname command which is in /usr/bin and /usr/ucb .
However, /usr/ucb should be in the PATH and should be found
if save_cluster_info is executed as a script .
What should have happened:
error message should be correct. -d should be documented or
removed from the program. save_cluster_info should find
hostname.
Please describe any relevant documentation references:
man getcluster
/source/athena/bin/getcluster/getcluster.c