Issuing system commands in Linux from C, C++

前端 未结 4 781
自闭症患者
自闭症患者 2020-11-27 21:50

I know that in a DOS/Windows application, you can issue system commands from code using lines like:

system(\"pause\");

or

s         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 22:56

    Well, lsmod does it by parsing the /proc/modules file. That would be my preferred method.

提交回复
热议问题