- Timestamp:
- 06/15/08 14:09:36 (5 years ago)
- Branches:
- master, 0.4.0, 0.4.1, 0.4.2, stable
- Children:
- e1ef872
- Parents:
- 8f167e8
- Location:
- include
- Files:
-
- 2 edited
-
config.h (modified) (1 diff)
-
execute_process.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
include/config.h
r367bf20 rdff5db9 26 26 27 27 // Version 28 #define SZBETATAG _T(" ") // _T(" RC ") _T(" BETA ")28 #define SZBETATAG _T(" RC ") //_T(" ") // _T(" RC ") _T(" BETA ") 29 29 #define SZVERSION STRPRODUCTVER SZBETATAG STRPRODUCTDATE 30 30 //FILEVER[0] -
include/execute_process.hpp
r5b9d247 rdff5db9 144 144 CloseHandle(hChildOutR); 145 145 } else { 146 msg = _T("NRPE_NT failed to create process (") + command + _T("): ") + error::lookup::last_error(); 146 DWORD error = GetLastError(); 147 if (error == ERROR_BAD_EXE_FORMAT) { 148 NSC_LOG_ERROR_STD(command + _T(" is not an .exe file or a valid image (if you run a script you usually need to prefix the command with the interpreter like so: \"command=c:\perl.exe <script>\"")); 149 msg = _T("ExternalCommands: failed to create process (") + command + _T("): it is not an exe file (check NSC.log for more info) - ") + error::lookup::last_error(error); 150 } else { 151 msg = _T("ExternalCommands: failed to create process (") + command + _T("): ") + error::lookup::last_error(error); 152 } 147 153 result = NSCAPI::returnUNKNOWN; 148 154 CloseHandle(hChildInR);
Note: See TracChangeset
for help on using the changeset viewer.








