have a look at the definition of the return code of strcmp - it returns 0 for equality. You could also use TString hostname(gSystem->GetHostname()), and then compare the TString using its operator==. The way you invoke the operator== C++ compares the memory addresses of the const char* returned by GetHostName and your local const char* “pcatlas264.cern.ch” - which will obviously always fail. So const char* hostname=gSystem->HostName();
if (hostname && !strcmp(hostname, "pcatlas264.cern.ch"))will work for you.
Axel.