PDA

View Full Version : How to add command/script to iPhone startup?




michaelwithe21
Jul 22, 2009, 05:44 PM
its really simple... I have this other thread going on, in which allows remote control of your iphone no matter where it goes via 3G with VNC/SSH or any other server protocol:

http://forums.macrumors.com/showthread.php?p=8041054#post8041054

and

http://www.modmyi.com/forums/iphone-ipod-touch-sdk-development-discussion/669471-connect-control-your-iphone-anywhere-ssh-vnc.html#post4787221

So my question:

How do I add a terminal command (or script) to the iPhone's bootup?
NOTE: It needs to be root or root privileges.

ANY HELP!!! =) thanks ahead of time!



tag
Jul 22, 2009, 06:15 PM
Not sure if this will help, but with a little searching I found this post here > http://www.modmyi.com/forums/file-mods/171271-startup-script.html#post2978901 which talks about using launchd to execute a startup script. The post includes a general overall example, an apple developer article link about launchd and a link to an example script that someone made for DNS updating.

michaelwithe21
Jul 23, 2009, 12:13 PM
thanks for the help... im linking through everything... still no hits on adding just a command to startup...