Added TextHandler to exec-call

This commit is contained in:
Ruakij 2021-11-22 10:33:24 +01:00
parent 8e5cb85c1a
commit 9c18c50640

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <string>
#include "./helper/exec.hpp"
#include "./handler/asyncHandler.hpp"
const std::string tcpdump_baseCmd = "tcpdump -vvv -e -n -X -s0 -i ";
@ -15,7 +15,7 @@ int main(int argc, char *args[]){
exit(1);
}
int exitCode = exec(tcpdump_cmd.c_str());
int exitCode = exec(tcpdump_cmd.c_str(), &asyncHandler);
if(exitCode){
fprintf(stderr, "\ntcpdump exited with non-zero ExitCode: %d\n Something went wrong! Check tcpdump-output for more information.\n", exitCode);