Invoke VNC viewer from command line

Discussion in 'macOS' started by Bearxor, Jul 29, 2011.

  1. Bearxor macrumors 6502a

    Joined:
    Jun 7, 2007
    #1
    Hey all,

    I've searched but haven't found anything so I'm hoping someone knows or will tell me where to go to find it :).

    I have several remote machines that I need to connect to through SSH tunnels. I'd prefer to simply write a script to do this. So the script will need to connect and authenticate via SSH and then start the OS X built-in VNC viewer.

    I'm just not sure how to start the VNC viewer from the command line (IE: what command do I use?!?!). If anyone knows it would be greatly appreciated.
     
  2. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
    Which version of Mac OS X? The exact command differs depending on the major version (10.4, 10.5, 10.6, 10.7, etc.).
     
  3. Bearxor thread starter macrumors 6502a

    Joined:
    Jun 7, 2007
  4. wrldwzrd89 macrumors G5

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #4
    Looks like it's in the same spot for 10.7 and 10.6...

    Code:
    /System/Library/CoreServices/Screen Sharing.app/Contents/Mac OS/Screen Sharing
     
  5. Bearxor thread starter macrumors 6502a

    Joined:
    Jun 7, 2007
    #5
    Thanks. I had no idea where that was or what is was called. Why the couldn't put it under Applications -> Utilities so it's easy to identify is beyond me...
     

Share This Page