ok ive changed
Code:
os.system('/usr/script/updateProviders.sh &')
to
Code:
subprocess.call('/usr/script/updaProviders.sh')
to run the script as os system doesn't always work but now it takes a thew minuets to run the plugin ive also removed sleep