Was the shah of Iran executed in 1979?

No, he fled the country and received medical treatment in the US. Iran, meanwhile, came under the control of Islamic fundamentalists under Ayatollah Khomeini. The Shah died of cancer in Egypt in July, 1980.