Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

bmcgonag

macrumors 65816
Original poster
Mar 20, 2007
1,077
0
Texas
Is there a way to start an app on my iMac when connected to it through SSH?

I actually want to start my VNC server on the iMac when connected remotely thorugh SSH.

Thanks
 
If it is a GUI-Application you can start it with the open command

open /Applications/Address\ Book.app/

starts Address Book.

If it is a system service just use the service command:

service name [start/stop]

Use service --list to find out the service names on your system.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.