+ -
当前位置:首页 → 问答吧 → excute的作用

excute的作用

时间:2011-11-25

来源:互联网

C/C++ code
if ('\0'==*send_buf)
        {
            memset(cmd,0,sizeof(cmd));
            strcpy(cmd,"/sbin/");
            strcat(cmd,recv_buf);
            execute(cmd,send_buf);

这里excute怎么解释???

作者: yuncha299792458   发布时间: 2011-11-25



看代码的意思是,先用root执行shell命令,再将结果储存到send_buf中

作者: Esperantor   发布时间: 2011-11-26

热门下载

更多