参考资料:
http://www.tldp.org/LDP/lpg/node12.html
https://baozh.github.io/2013-11/how-to-call-shell-script-in-c-plus-plus-program/
https://stackoverflow.com/questions/478898/how-to-execute-a-command-and-get-output-of-command-within-c-using-posix