A spokesman for the train operator Scotrail said: "We have had to bring trains into stations and we have tried to ensure that passengers on those trains are as comfortable as possible. We have been giving them teas and coffees and trying to help them complete their journey by taxi wherever possible.