#48: Stop relying on echo
, tee
and /dev/null
for redirecting compression command to debug/
This commit is contained in:
parent
8d4f31d106
commit
76e41f2f7b
4
main.cpp
4
main.cpp
@ -684,7 +684,9 @@ void exec(unsigned short threadId, string cmd, bool debug)
|
|||||||
debugErrFilePath = debugCommonFilePath + ".err";
|
debugErrFilePath = debugCommonFilePath + ".err";
|
||||||
cmd += " >> " + debugOutFilePath;
|
cmd += " >> " + debugOutFilePath;
|
||||||
cmd += " 2>> " + debugErrFilePath;
|
cmd += " 2>> " + debugErrFilePath;
|
||||||
cmd += "; echo \"" + initialCmd + "\" | tee -a " + debugOutFilePath + " " + debugErrFilePath + " > /dev/null";
|
|
||||||
|
writeFile(threadId, debugOutFilePath, "a", initialCmd + "\n");
|
||||||
|
writeFile(threadId, debugErrFilePath, "a", initialCmd + "\n");
|
||||||
}
|
}
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user