LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-19-2013, 11:56 AM   #1
krisl100
LQ Newbie
 
Registered: Dec 2009
Location: Montreal, Canada
Distribution: Gentoo, Debian, CentOS
Posts: 5

Rep: Reputation: 0
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
 
Old 09-19-2013, 12:01 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
create a wrapper script, and have it source /usr/omni/.bash_profile

example.sh
Code:
#!/bin/bash
. /usr/omni/.bash_profile
application arg1 arg2
 
  


Reply

Tags
bash, linux command, profile


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 bypass 'Grub' after deleting the Linux partition, so that Windows XP can load? Marion D Poff Linux - Software 11 03-15-2011 04:52 PM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 7 09-04-2010 11:16 AM
[SOLVED] Constant errors in .bash_profile and startx does not load automatically mmoi5 Linux - Newbie 1 09-04-2010 07:33 AM
.bash_profile location chow-stl Slackware 5 07-21-2005 08:19 AM


All times are GMT -5. The time now is 06:16 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration