implement following using c++11 : method which accept script name to execute. script…
- User
implement following using c++11 : method which accept script name to execute. script should be executed on underlying linux system output of script should be monitored to distinguish if it succeed or failed. additionally execution can't take more than five minutes and method should failed after this timeout.
- Assistant
Below is an implementation of the requested method in C++11:
cpp - User
implement following using c++11 : method which accept script name to execute. script should be executed on underlying linux stadnard system output of script should be monitored to distinguish if it succeed and failed as well as standard error output to detect errors. additionally execution can’t take more than five minutes and method should failed after this timeout.
- Assistant
Below is an updated implementation of the requested method in C++11, which includes monitoring standard error output in addition to standard output: