Are system() calls evil?

后端 未结 6 1690
臣服心动
臣服心动 2020-12-03 21:07

I am designing an C++ app that, among other things, executes a few scripts every now and then. The app should be efficient and preferably platform independent.

The i

6条回答
  •  春和景丽
    2020-12-03 21:45

    I used the system() call in my CGI C++ app under windows and Linux too.

    One problem I had was when using system() was not having the proper access rights to execute my skript with the web user.

    I did not have that problem any more when using the CreateProcess() method.

提交回复
热议问题