函式名: execv
用 法: int execv(const char *pathname, char * const argv[]);
舉例:
char *exec_argv[4];
exec_argv[0] = ip;
exec_argv[1] = port;
exec_argv[2] = NULL;
if (execv("/bin/telnet", exec_argv) == -1)
{
DoDisconnect();
CheckError(nResult, etTelnetConnect, "Connect");
}