popen()在网页中能否打开
printf("<body>\n");
memset(buf,0,sizeof(buf));
strcpy(Dev,name_val_pairs[0].value);
strcpy(BandWidth,name_val_pairs[1].value);
if(strcmp(Dev,"eth0")==0)
strcpy(QueueId,"1:0");
else
strcpy(QueueId,"2:0");
sprintf(buf,"tc qdisc add dev %s root handle %s cbq bandwidth %sbit avpkt 1000 cell 8 mpu 64",Dev,QueueId,BandWidth);
printf("%s\n",buf);
if((fp=popen(buf,"r"))!=NULL)
{
while(fgets(buf,256,fp)!=NULL)
i=0;
pclose(fp);
}
else
return ;
if(Add_Shell_Exec(buf,0,0)==0)
return ;
printf("</body>");
在 linux下popen(buf,"r")打不开,请问高手指教