LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-11-2012, 09:30 AM   #1
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Rep: Reputation: 2
launch application


I am working in a RHEL environment, where we have a generic application. The application is launched by simply typing the name of the application and hitting enter.

[root@vmdclnx6 "]# abc

application then launches.


I need to look at, and change the instructions behind what happens when someone types "abc" in attempt to launch the application.

Thanks in advance.
 
Old 01-11-2012, 09:42 AM   #2
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
We have two versions of this application on the server.

a 2010 version and a 2011 version. When we launch "abc" it is launching the 2010 version. I need it to launch the 2011 application.


Eventually I would like to have a menu that I can pick what version to run.
 
Old 01-11-2012, 09:51 AM   #3
mmrtnt
LQ Newbie
 
Registered: Nov 2006
Location: las vegas, nevada
Distribution: fedora core x
Posts: 25

Rep: Reputation: 8
You might look into "alias" in the .bashrc or .bash_profile for the user launching the appclication.

Code:
alias abc1='/some/directory/abc2010/abc'
alias abc2='/some/directory/abc2011/abc'
 
Old 01-11-2012, 09:59 AM   #4
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
Sorry I am having trouble understanding.

I see I see "abc" in bin.
 
Old 01-11-2012, 10:30 AM   #5
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
for right now I guess I just need "abc" to point to the newer version for everyone.
 
Old 01-12-2012, 01:27 AM   #6
bsat
Member
 
Registered: Feb 2009
Posts: 347

Rep: Reputation: 72
as pointed by mmrntn please explore the command "alias" it should give you the solution you are looking for.
 
Old 01-12-2012, 06:57 AM   #7
mmrtnt
LQ Newbie
 
Registered: Nov 2006
Location: las vegas, nevada
Distribution: fedora core x
Posts: 25

Rep: Reputation: 8
You can also update the PATH variable in everyone's environment by editing the system-wide bashrc (or whatever shell everyone is using) and removing the entry to the directory with the 2010 version.

Google and Google
 
Old 01-12-2012, 07:28 AM   #8
dorlack
Member
 
Registered: Oct 2009
Location: Cambridge MA
Distribution: Any Linux
Posts: 122

Original Poster
Rep: Reputation: 2
edited;
.bash_profile


thank you for the help!!
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to launch an application from anywhere? TigerLinux Linux - Newbie 15 11-01-2010 10:13 AM
Unable to launch application from workstation but able to launch from vnc chaitanya1982 Linux - Desktop 2 04-30-2010 03:52 AM
[SOLVED] To launch an application divyashree Linux - Software 4 10-03-2009 06:24 AM
How do you find an application using launch application pnoise Linux - Newbie 1 01-11-2009 10:44 PM
New Application in the launch Menu xpucto Linux - Newbie 6 01-10-2008 02:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration