Daniel mentioned checking the man page for hostname. It's too long to include everything, but here is the -s part:
-s, --short Display the short host name. This is the host name cut at the first dot. so here is the part from my /etc/hosts file: # Do not remove the following line, or various programs # that require network functionality will fail. ... 127.0.0.1 localhost.localdomain localhost Linux ... so here is different outputs from hostname: [EMAIL PROTECTED] kdtop]$ hostname Linux [EMAIL PROTECTED] kdtop]$ hostname -s localhost [EMAIL PROTECTED] kdtop]$ Kevin --- Daniel Gray <[EMAIL PROTECTED]> wrote: > Thanks Fil, I take that as a great compliment. And > you knew I would. > > All other readers: Fil has exaggerated my > reputation as a hacker, but maybe > it was because of something I said . . . > > Nancy: I'm not too sure what information will help, > but here is a paragraph > from Krn8_Osm.pdf > > ============== > BOX-VOLUME PAIR > This field identifies a volume set and the CPU on > which it is available. It > contains the name of a volume set concatenated to > the CPU ("box") name: > first the volume set name and then the CPU name. For > example, if the > volume set name is "KRN" and the name of the CPU > (e.g., box) is "ISC6A1", > then the box-volume pair would be "KRN:ISC6A1". > > For systems on which each CPU tends to have a unique > volume set, and vice > versa, you may enter just the volume set name (e.g., > "PSA" or "AAA"). This > field's value for the current process can be found > by doing GETENV^%ZOSV > and checking the fourth ^-piece of Y. Since the > volume set and CPU are > identified, the TaskMan site parameters can be tuned > for each specific > volume set and CPU affected. Systems running > Managers on more than one > CPU need one entry for each CPU where a manager is > running. > ============= > > So for Kernel to work, VOL:BOX has to be set up > right. But why do they call > it Box-Volume, why not call it Volume-Box? The name > of it caused me some > confusion when I was setting up taskman. And yes, > the ^%ZOSF("PROD") and > ^%ZOSF("MGR") and ^%ZOSF("VOL") have to be all set > right, and that is done > when you do ^ZTMGRSET. Maybe ^ZTMGRSET should get > "BOX" name, and at least > begin setup of KERNEL SITE PARAMETERS. Maybe it > does. > > The version of Kernel I am running, has the code I > showed below, that is, > the call to GETENV^%ZOSV calling RETURN^%ZOSV which > evoked the GTM function > ZSYSTEM("hostname -s") > From the GTM documentation, it looks like the > ZSYSTEM call is a way to > generate a "plainjane" Linux command. And I would > suppose that one could > say, to Linux > #hostname -s > and you would get a parameter out of the etc/hosts > file, hopefully the "box" > name, or the short name of your computer. > > I think that Linux uses different names for > different things, Redhat9, I > think, provides for a longname and a shortname, and > whoever wrote the ^%ZOSF > that I have, knew to look for the short name (thus > "-s"). One could do > $man hostname and see what it says there, I will do > that when I get a > chance. But there should be some documentation > somewhere that tells the > naïve user to name his computer with a short and > sweet alias, and to check > KERNEL SITE PARAMS to make sure taskman will run. > > It looks like the Linux configuration provides for > three fields in the hosts > file. The first is IP address, the second is the > name of your computer (a > shortname), and the longname might be the URL of > your system. If this is > really the case, then Kernel could use that > shortname as a "box" name, to > identify your "box" on a network. > > Maybe there is a difference between Redhat9 and > Fedora, and maybe there is a > difference in the GTM systems we are running, and > maybe a difference in the > VA Kernel we are running. > > The comments below indicate all three are different, > and we need to get on > the same page of music before our conversation will > make sense. > > Dan > GTM>h > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Beza, Fil > Sent: Sunday, November 21, 2004 3:07 PM > To: [EMAIL PROTECTED] > Subject: RE: [Hardhats-members] Volume Sets > > If it is about VistA Kernel, I doubt if I could say > anything that Dan > doesn't know. He's the hacker and knows more about > the ins and outs of > Kernel than I do. > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Nancy E. > Anthracite > Sent: Saturday, November 20, 2004 5:33 PM > To: [EMAIL PROTECTED] > Subject: Re: [Hardhats-members] Volume Sets > > I am running Fedora Core 2, which isn't that far > from Redhat and the short > name comes from the first half of that > localhost.localdomain or > XXX.localdomain XXX part, but it does not have to be > the same as the volume > set. I know that from my installation. You set the > volume set internally > in Vista from $P(^%ZOSF("PROD"),",",2) and that is > set, I think, in the > volume set file and it is the volume set that is the > signon/production > volume set in the volume set file. > > Fil, Wally, Rick, Marianne or somebody who knows > this stuff, help us out > here, please. > > > > On Saturday 20 November 2004 03:24 pm, Daniel Gray > wrote: > > Nancy: > > Little things like this are really slowing down my > progress, but I am > > learning a lot about Linux and GTM in the process. > Getting a little déjà > > vu of the early days in VistA. The only FileMan > doc was, I think, 20 > pages > > long (but, as George T will attest), everything > was there, you only needed > > to know where to look. We would call him up, he > would say (without > > looking), "page 18, on the bottom, there in the > example". > > > > Here is my origional hosts file, right after > installation of Redhat 9: > > # Do not remove the following line, or various > programs > > # that require network functionality will fail. > > 127.0.0.1 localhost.localdomain localhost > > > > GTM>D GETENV^%ZOSV > > hostname: Unknown host > > > > GTM>ZWRITE > > Y="VAH^ROU^^ROU:" > > > > GTM> > > > > Here is the "hosts" file as it is now. > > # Do not remove the following line, or various > programs > > # that require network functionality will fail. > > 127.0.0.1 ROU x1-6-00-e0-18-62-af-ec > > > > GTM>D GETENV^%ZOSV > > > > GTM>ZWRITE > > Y="VAH^ROU^ROU^ROU:ROU" > > > > If I take out the third field, leaving only two, > > # Do not remove the following line, or various > programs > > # that require network functionality will fail. > > 127.0.0.1 ROU > > > > GTM>D GETENV^%ZOSV > > hostname: Unknown host > > > > GTM>ZWRITE > > Y="VAH^ROU^^ROU:" > === message truncated === __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Hardhats-members mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hardhats-members