As you've probably guessed I'm no linux/raspberry pi expert but I came across someone trying to do a similar thing while I was searching trying to sort my autorun problem. I think they used python to get it setup/write a script and then the crontab -e to get it to run continuously.