Shell in Cocoa

头文件相关

#include <stdlib.h>

 

方法相关

system("<Shell 命令>");

 

带默认密码的Shell命令

system("echo <password> | sudo -S ... -r now");

 

posted on 2014-09-05 16:29  innovator  阅读(136)  评论(0)    收藏  举报

导航