When the defendant is in custody, the court may direct the officer in whose custody he is to bring him before it for judgment, and the officer must do so accordingly.
R.L.1910, § 5945.