In 1936 he was appointed assistant in humanity, and in 1938 lecturer in classics at Edinburgh University.
During the Second World War Cook served in the Royal Scots regiment, and in the intelligence corps.