A 61-year-old man has been given a 12-month intensive supervision order after committing an indecent act by sticking his penis through a ‘glory hole’ in a public toilet wall.

Robert Charles St Jack was sentenced after he pleaded guilty to committing an indecent act in public at the Fremantle Magistrates court today .

On February 4, 2018, a man was in a public toilet block with his two children at Woodman Point in Coogee while Mr St Jack occupied one of the two toilet cubicles.

The children left the toilet before the incident happened.

Once they left, Mr St Jack stuck his penis through a hole in the toilet wall and made sexually explicit comments to the father.

A gloryhole is a hole in a wall or other partition, often between public lavatory stalls, put there for people – usually men – to engage in sexual activity.

The defence lawyer for Mr St Jack said he had depression and had struggled to cope with loneliness.

Magistrate Steven Malley said the community would rightly have concerns about this type of offence and had the right to know.

“If you do this type of offence again, you will go to jail,” he said.