In order to connect the iphone via ssh over usb on the mac, it is necessary to run a terminal command. Can anyone please help me figure out how to have a simple command string run in the terminal every time I startup, and have the terminal window close automatically when it is done? I have lingon, which should make it easy, but I still need help. I created a "user agent", but it doesn't seem to be doing the trick and there are no error messages. Here is the string I need to run from terminal every time the computer starts up (and then close the terminal after the string is run): python /Applications/python-client/tcprelay.py -t 22:2222 & Or get to the directory /Applications/python-client, and then run python tcprelay.py -t 22:2222 & Thanks.