I have a Raspberry Pi running Raspian Wheezy, and I have it set up as a Bluetooth A2DP reciever. The audio streaming and everything is working wonderfully, but I'd like to make it so that the Pi tries to connect to my phone automatically every 10 seconds or so, and when it does connect, I need it to execute one command. Does anyone have any idea how to do this? I think a cron job could do it, but I have no idea where to start.
