using shell script instead of motion