(a)as regards persons undergoing sentence in a civil prison or any other place, the officer commanding the army, army corps, division, or independent brigade within the area of whose command the prisoner subject to such punishment may for the time being be;