Does the rest of your script work ?

The code you show works OK for me, from a command line.

Is the script actually starting ?

Add some "Beep" lines to get audio feedback that the script is starting OK.
_________________________
AndyD England, UK.