- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to run a command from anywhere in user mod...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:36 AM
08-25-2004 02:36 AM
I have a bunch of commands from a software I just installed. I would like to run them from whichever directory I am in currently without cd-ing to that their directory to run them. And I would like to do it in user mode. Is it possible? How can it be done? Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:40 AM
08-25-2004 02:40 AM
Re: How to run a command from anywhere in user mode?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:42 AM
08-25-2004 02:42 AM
SolutionIn either case, add something like this to the end: -
# Add MyApplication to search path
PATH=$PATH:/opt/myapplication/bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:49 AM
08-25-2004 02:49 AM
Re: How to run a command from anywhere in user mode?
just add the specified path to your PATH Variable.
You can do this in /etc/profile (for all users) or in ~/.profile for selected user
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:17 AM
08-25-2004 03:17 AM
Re: How to run a command from anywhere in user mode?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:21 AM
08-25-2004 03:21 AM
Re: How to run a command from anywhere in user mode?
/etc/profile
export myapp=/opt/myapp/bin
$ $myapp/foo
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 03:24 AM
08-25-2004 03:24 AM
Re: How to run a command from anywhere in user mode?
You may run commands without full path if the path is included int the PATH variable. If the software is a "self made", install it in a directory which is included into PATH (/usr/local/bin, for example). Some standard and GNU installations put appropriate PATH into the file called /etc/PATH, which is read by the standard login procedure.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2004 12:51 AM
08-26-2004 12:51 AM