#include
int main(int argc, char *argv[])
{
if(argc < 2)
{
fprintf(stderr,"Single argument: Target hostid\n",argv[0]);
return 1;
}
sethostid(
strtoul(argv[1],NULL,16) );
return 0;
}
1) Save this file as hostid_changer.c
2) gcc hostid_changer.c hostid_changer.out
3) ./hostid_changer.out (new_hostid for your system)
Cheers...
Regards
Sandeep
No comments:
Post a Comment