Upon such convicted offender being brought before the court, they shall proceed to inquire into the facts, and if no legal reasons exist against the execution of sentence, such court shall issue a warrant to the director of the department of corrections, for the execution of the prisoner at the time therein specified, which execution shall be obeyed by the director accordingly.