Upon the convict being brought before the court, it shall inquire into the circumstances, and, if no legal reason exists against the execution of the sentence, shall order the warden of the state penitentiary in which the death chamber is located to execute the defendant on a day to be fixed by the court.
T.C.A. § 40-23-119