Section 542(2) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(2)The officer so in charge, on receipt of such order, shall act in accordance therewith, and shall provide for the safe custody of the prisoner during his absence from the jail for the purpose aforesaid.