A man who shot at school pupils with an air pistol from his Glasgow home has been banned from returning there for two years.
Graeme Crawford, 37, fired at teenagers who were walking back to St Paul's High School in Pollok last November.
At Glasgow Sheriff Court he admitted to culpably and recklessly discharging the pistol and a breach of the peace.
Crawford was also placed on probation for two years and ordered to perform 150 hours of community service.
The court was told how a group of pupils - aged 14 and 15 - were returning to school on 17 November last year when Crawford came out onto his driveway.
He began shouting and swearing "do you think you're hard"' and "I'll stab all of you".
Crawford then went back inside his house and returned with the air gun which he fired seven or eight times towards the children.
One of the pupils was struck in the chest before Crawford stopped firing and shouted: "The next time I'll get my real gun."
Police were called and found the air pistol and ball-bearings in Crawford's kitchen cupboard.
Sheriff Martin Jones QC took the unusual step of banning Crawford from his house for two years.
It is believed he will now be living with his parents at their home in the city's Crookston area.
Sheriff Jones added: "Had you been convicted of a firearms offence and had children been injured, you would have been facing a custodial sentence."