hostid change

Vasilis Vasaitis vvas at hal.csd.auth.gr
Tue Apr 27 01:24:42 EEST 1999


On Mon, Apr 26, 1999 at 12:35:31PM +0300, Anogianakis Michalis wrote:
> Yparxei tropos na allaxo to hostid se ena redhat 5.2 me 2.2.3.
> Eixa licenced software kai meta to format kai xanastisimo allaxe to hostid
> Thanks
> ---mike

  To hostid kanonika den einai tipota allo para i IP address tou
mixanimatos. Parol' auta, o root mporei na to allaksei me to parakato
programma (den to dokimasa):

-------- cut here: sethostid.c ---------
#include <unistd.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    if (argc < 2) {
	fprintf(stderr, "usage: sethostid <number>\n");
	return 1;
    }
    sethostid(atol(argv[1]));
    return 0;
}
----------------------------------------

  Esi as poume mporeis na to valeis na ekteleitai me katallili timi mesa
apo ta startup scripts kai na isixaseis.

-- 
Vasilis Vasaitis
vvas at hal.csd.auth.gr

--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list