是因为i_ret = execl("/bin/sh","sh","-x",str_script.c_str(),str_parameter.c_str());最后少一个参数,execl的最后一个参数必须是NULL
改成i_ret = execl("/bin/sh","sh","-x",str_script.c_str(),str_parameter.c_str(),NULL); OK
是因为i_ret = execl("/bin/sh","sh","-x",str_script.c_str(),str_parameter.c_str());最后少一个参数,execl的最后一个参数必须是NULL
改成i_ret = execl("/bin/sh","sh","-x",str_script.c_str(),str_parameter.c_str(),NULL); OK