The superintendent [warden] shall collect all moneys due to the penitentiary, except appropriations from the state, and shall pay the same over to the state treasury, to be placed to the credit of the penitentiary convicts’ earning fund, taking a receipt for the same.