Are system() calls evil?

后端 未结 6 1709
臣服心动
臣服心动 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:56

    I maintain a system that consists of several separate executables. In this case I have control over the permissions, names, calling conventions, security over all supported platforms. In this case, system() works just fine. The applications communicate through a RDBMS.

    Again, as others have noted "The Devil's in the details".

提交回复
热议问题