Changeset dff5db9 in nscp for include/execute_process.hpp
- 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
- File:
-
- 1 edited
-
include/execute_process.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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.








