Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 31, 2010, 03:39 PM   #1
pcs are junk
Banned
 
Join Date: Sep 2009
How to control your iPhone from terminal?

I was just wondering how you can run commands from terminal on a mac, to control your iPhone. You can control it with iRecovery, but that is only for recovery mode, the cool thing is if you type reboot it reboots. So this leads me to thinking there must me codes that you can run to make it do something. Does anybody have any information on this?
pcs are junk is offline   0 Reply With Quote
Old Jan 31, 2010, 06:20 PM   #2
Penguissimo
macrumors 6502a
 
Penguissimo's Avatar
 
Join Date: Nov 2009
Location: Michigan
If you have SSH installed on the iPhone, you can use terminal to remotely access the phone. Just type this:

ssh -l root 192.168.1.100

Obviously you'll need to replace the IP address with your phone's actual IP address. You'll get a big scary warning about an unrecognized RSA key; just type "yes" and hit enter. Then enter your root password (you changed it from "alpine" when you installed SSH, right?) and you'll have full access to a shell on your iPhone. You won't have all the commands you do on the Mac ("top" is missing, for example), but you can navigate the filesystem, copy, move, and delete files, etc.
Penguissimo is offline   0 Reply With Quote
Old Jan 31, 2010, 08:57 PM   #3
pcs are junk
Thread Starter
Banned
 
Join Date: Sep 2009
yeah i have the password changed, but i mean like can you actually control what it does...like is there a command to open the facebook app or camera? this is what im looking for.
pcs are junk is offline   0 Reply With Quote
Old Jan 31, 2010, 11:01 PM   #4
Penguissimo
macrumors 6502a
 
Penguissimo's Avatar
 
Join Date: Nov 2009
Location: Michigan
Quote:
Originally Posted by pcs are junk View Post
yeah i have the password changed, but i mean like can you actually control what it does...like is there a command to open the facebook app or camera? this is what im looking for.
Oooh, sorry, didn't realize that's what you meant. Apparently with older versions of the firmware, you could launch apps just by typing their path (/Applications/Calculator.app/Calculator, for example), but that doesn't seem to work with 3.1.2.

If you install the Erica Utilities from Cydia (you may already have them; lots of packages depend on them), it includes the "launch" command, which allegedly lets you launch apps by typing "launch" followed by the application identifier (such as "com.apple.calculator"—you can find this for any app by looking in that app's Info.plist) of whichever app you want to launch.

I couldn't get this to work, though, and a quick Google shows that it also doesn't seem to work with any 3.* firmware If you find a way, please share; it'd be great to be able to do this again!
Penguissimo is offline   0 Reply With Quote

Reply
MacRumors Forums > iPhone, iPod and iPad > iPhone > iPhone Tips, Help and Troubleshooting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
How to control your iPhone/iPod with Apple Earphones with Remote and Mic glossywhite iPod 7 Jun 28, 2012 06:32 AM
how to control your mac from your iphone via the internet loneshark iPhone and iPod touch Apps 19 May 2, 2010 12:00 AM
How to control the iphone through your macbook... jonjamesm iPhone Tips, Help and Troubleshooting 3 Sep 13, 2009 10:47 AM
Application to control your iphone from Mac? starney iPhone Tips, Help and Troubleshooting 0 Nov 25, 2008 11:56 AM


All times are GMT -5. The time now is 01:02 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC