This paper introduces the control of systems governed by unknown equations and studies some systems of these equations. The exact controllability of parabolic equations with distributed controls is checked and shooting methods are used for solving the optimality system of equations. Finally, numerical experiments verify the effectiveness of the proposed method for solving a class of optimal control problems by parabolic equations.