Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Can you start programs form the command line?

Can you start programs form the command line?
Thread Tools
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Aug 1, 2005, 08:08 AM
 
I've got a mac that I gave to a family member which I have ssh access to for upkeep... I was wondering if there is a way to start the vnc session from the vncosx app in the applications folder from the cmd line?
     
Grizzled Veteran
Join Date: Nov 2003
Location: Hebburn, UK
Status: Offline
Reply With Quote
Aug 1, 2005, 08:23 AM
 
Just use `open'. For example:
open /Applications/iSync.app
Just who are Britain? What do they? Who is them? And why?

Formerly Black Book
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Aug 1, 2005, 09:19 AM
 
Oh! nice! thanks for the help.
     
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Aug 1, 2005, 10:27 AM
 
or just open -a "Appname"
e.g.
open -a "Microsoft Word"
open -a "OSXVnc"
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Badfort
Status: Offline
Reply With Quote
Aug 1, 2005, 02:02 PM
 
In the case of OSXvnc, the executable is symlinked to the root of the app, so /Applications/OSXvnc.app/OSXvnc-server would launch the executable. You can pass arguments to this as well, so /Applications/OSXvnc.app/OSXvnc-server -rfbport 5901 would listen on port 5901 (useful if they have enabled the Apple vnc server on its default port).
You see, my friends, pirates are the key. - thalo
     
   
Thread Tools
Forum Links
Forum 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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:56 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2