MCPcopy Create free account
hub / github.com/benkuper/Chataigne / launchCommand

Method launchCommand

Source/Module/modules/system/os/OSModule.cpp:210–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void OSModule::launchCommand(const String& command, bool silentMode)
211{
212 int result = 0;
213#if JUCE_WINDOWS
214 if (silentMode) result = WinExec(command.getCharPointer(), SW_HIDE) > 31 ? 0 : 1;
215 else result = system(command.getCharPointer());
216#else
217 result = system(command.getCharPointer());
218#endif
219 if (logOutgoingData->boolValue()) NLOG(niceName, "Launching : " + command);
220 if (result != 0) NLOGERROR(niceName, "Error trying to launch command : " << command);
221 outActivityTrigger->trigger();
222}
223
224void OSModule::launchChildProcess(const String& command)
225{

Callers 2

triggerInternalMethod · 0.80

Calls 1

triggerMethod · 0.80

Tested by

no test coverage detected