/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* execute_cmd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: dkaiser #include #include int execute_cmd(t_cmd *cmd, t_env *env) { int result; char *cmd_path; cmd_path = get_cmd_path(cmd->args[0], env); cmd->args[0] = cmd_path; result = execve(cmd->args[0], cmd->args, env_to_strlst(env)); return (result); }