[Solved] Exec Binding - Ping on demand

I’m using the Exec Binding to issue a ping to my iphone so I can turn the heating up when I turn my phone on in the morning using the instructions from the Wiki “How to do a proper ICMP ping on Linux” .
I’ve discovered that when the iphone is asleep it doesn’t respond to pings which is exactly what I want as I didn’t want the battery life to suffer. I’m leaving this up for anyone else that follows in my footsteps.