//execv
char *arg[2];
arg[0] = "SIT";
arg[1] = NULL;
execv("/usr/local/pagent_dist/install.sh", arg);
//popen
FILE* fp = NULL;
snprintf(cmd,sizeof(cmd), "unzip -o %s -d /usr/local/", filename);
if ((fp = popen(cmd, "r")) != NULL){
fgets(cmd, sizeof(cmd), fp);
pclose(fp);
}else{
return 0;
}
//system
snprintf(cmd,sizeof(cmd), "unzip -o %s -d /usr/local/", filename);
ret = system(cmd);
if (ret < 0) {
return 0;
}