Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Country Specific / Australian Mac Group / August 2005



Tip: Looking for answers? Try searching our database.

terminal question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
paul - 19 Aug 2005 07:38 GMT
Hi,

If I try to launch a program from the terminal I can't just change to the
applications folder and launch the app, I have to type the full path such
as:
/users/paul/applications/theapp

Is there a way to do this without needing the full path; just by navigating
to the required folder then entering the name of the app?

Paul
Matt McLeod - 19 Aug 2005 08:00 GMT
> Is there a way to do this without needing the full path; just by navigating
> to the required folder then entering the name of the app?

$ cd /Applications/
$ open Dictionary.app/

opens the Dictionary application.

My understanding is that 'open' passes the named thing to Finder
to deal with.  Finder knows about application bundles.

Or are you talking about text-based programs that run in the
terminal?  In that case prefix the name with ./, i.e.:

$ cd /some/directory
$ ./application

You can in principle stick "." in your PATH variable, but it's
a bit of a security risk and common UNIX newbie mistake.  Much
safer to do the explicit "./" thing instead.

Matt
Jason - 19 Aug 2005 11:41 GMT
> > Is there a way to do this without needing the full path; just by navigating
> > to the required folder then entering the name of the app?
[quoted text clipped - 16 lines]
> a bit of a security risk and common UNIX newbie mistake.  Much
> safer to do the explicit "./" thing instead.

open -a <Application Name>
e.g.

open -a Safari

Signature

"Bill Gates is just a monocle and a Persian Cat away
from being one of the bad  guys in a James Bond movie."
                                                        -- Dennis Miller

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.