How can i make the iphone (1.1.4) run a command on wakeup? Is there any way to make it wait X number of seconds after wakeup?

I am asking becasue I can't get the plist method to work in order to lo-jack the iphone (http://www.appleiphoneschool.com/200...r-your-iphone/) but when I ssh and run "tweet" it works.

Thanks