LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How can I bypass bash_profile and have it load from a different location? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-i-bypass-bash_profile-and-have-it-load-from-a-different-location-4175477751/)

krisl100 09-19-2013 10:56 AM

How can I bypass bash_profile and have it load from a different location?
 
I have centos installed.

We have an application that uses the bash_profile from here:

/usr/omni/.bash_profile

I want to create a user that will bypass the home/.bash_profile and use the one in the directory listed above. How can I do this?

Thank You for any help, I am a new junior linux admin, got tired of Micro$oft, been through 2 MS audits, switched to Linux, and am loving it :)

Firerat 09-19-2013 11:01 AM

create a wrapper script, and have it source /usr/omni/.bash_profile

example.sh
Code:

#!/bin/bash
. /usr/omni/.bash_profile
application arg1 arg2



All times are GMT -5. The time now is 10:52 AM.