version 1.69, 2002/08/29 00:27:52
|
version 1.70, 2002/09/03 13:31:31
|
|
|
// | // |
String referenceStr = "//"; | String referenceStr = "//"; |
referenceStr.append(hostStr); | referenceStr.append(hostStr); |
|
referenceStr.append("/"); |
referenceStr.append(PEGASUS_NAMESPACENAME_SHUTDOWN); | referenceStr.append(PEGASUS_NAMESPACENAME_SHUTDOWN); |
referenceStr.append(":"); | referenceStr.append(":"); |
referenceStr.append(PEGASUS_CLASSNAME_SHUTDOWN); | referenceStr.append(PEGASUS_CLASSNAME_SHUTDOWN); |
|
|
// | // |
// check to see if user is root | // check to see if user is root |
// | // |
|
#ifndef PEGASUS_OS_OS400 |
if (!System::isPrivilegedUser(System::getEffectiveUserName())) | if (!System::isPrivilegedUser(System::getEffectiveUserName())) |
{ | { |
cout << "You must have superuser privilege to run "; | cout << "You must have superuser privilege to run "; |
cout << "cimserver." << endl; | cout << "cimserver." << endl; |
exit(0); | exit(0); |
} | } |
|
#endif |
| |
// | // |
// Check to see if shutdown has already been specified: | // Check to see if shutdown has already been specified: |