// // Created by jhunk on 10/4/23. // #ifndef OMC_SYSTEM_H #define OMC_SYSTEM_H #include #include #include #include #include #include #include #include struct Process { char stdout[PATH_MAX]; char stderr[PATH_MAX]; int redirect_stderr; int returncode; }; int shell(struct Process *proc, char *args); int shell_safe(struct Process *proc, char *args); char *shell_output(const char *command, int *status); #endif //OMC_SYSTEM_H