Hi hows things?

I am trying to write a script to switch off and back on USB ports when a user specifies. I have done it in Windows by altering the registry but I am at a wits end in Ubuntu.

There seems to be a fair few posts on the topic but nonw have verified that any of the approaches work and others seem to far fetched like altering the kernel requiring you to rebuild it in the process.

If anyone has any ideas I would be really greatful. I need to be able to turn them on or off as many times as I need so scripting seems to be the way to go.

Cheers