Run an App through SSH

Discussion in 'macOS' started by bmcgonag, May 11, 2010.

  1. bmcgonag macrumors 65816

    bmcgonag

    Joined:
    Mar 20, 2007
    Location:
    Texas
    #1
    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
     
  2. Detektiv-Pinky macrumors 6502a

    Detektiv-Pinky

    Joined:
    Feb 25, 2006
    Location:
    Berlin, Germany
    #2
    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.
     
  3. bmcgonag thread starter macrumors 65816

    bmcgonag

    Joined:
    Mar 20, 2007
    Location:
    Texas
    #3
    Awesome! (putting that into my bag of tricks now!)

    Thanks
     

Share This Page