From 429039d45d1af9cfda9e706d4ac8f1a144ed66d4 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 23 May 2012 23:10:59 -0400 Subject: Refactor: move runCommand() to util.cpp --- src/util.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util.cpp') diff --git a/src/util.cpp b/src/util.cpp index 08e3625b3..3ab30baff 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1079,3 +1079,11 @@ boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) return fs::path(""); } #endif + +void runCommand(std::string strCommand) +{ + int nErr = ::system(strCommand.c_str()); + if (nErr) + printf("runCommand error: system(%s) returned %d\n", strCommand.c_str(), nErr); +} + -- cgit v1.2.3