Army commander sentenced for links to paramilitaries