当前位置: 技术问答>linux和unix
向大家请教exec函数
来源: 互联网 发布时间:2016-05-20
本文导语: #include #include int main(int argc,char* argv[]) { execlp("ps","ps","-o","pid,ppid,pgrp",NULL); perror("execlp:"); int i; for(i=0;i
#include
#include
int main(int argc,char* argv[])
{
execlp("ps","ps","-o","pid,ppid,pgrp",NULL);
perror("execlp:");
int i;
for(i=0;i
#include
int main(int argc,char* argv[])
{
execlp("ps","ps","-o","pid,ppid,pgrp",NULL);
perror("execlp:");
int i;
for(i=0;i