LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-30-2007, 02:06 PM   #1
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Rep: Reputation: 15
$PATH question for KSH on Fedora 7


Hi Experts,

Below is a breif explanation of what I have right now;

1. I have installed Fedora Core 7 on my desktop, which comes with default shell which is bash.
2. Since I wanted try out Db2 UDB on linux, I installed DB2UDB succefully.
3. When I login to db2user and see the path everything is set perfectly for udb db2 in .bashrc and .bash_profile file
and automatically sets the path when I login.
4. I wanted to work on Korn Shell, so I installed Korn Shell and also changed the default shell.

Now my question is, everytime I login to use the db2(which has Lorn Shell as default), I have to set the db2 path explicitly by exporting the path. So, I am not sure how to set the path as in bash which sets the path automatically when I login.

Please needs help on this, I appreciate your help.\

Thanks,
learning linux and unix - TJ
 
Old 06-30-2007, 03:04 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Hi.

ksh looks in ~/.profile for its startup environment, so put your PATH (and export it) in there.

Dave
 
Old 06-30-2007, 03:26 PM   #3
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Hi Dave,

I agree to put the path in .profile file, but i don't see any .profile file and kshrc file(i am not sure if we really need this) for this, instead of the .profile, there is .bash_profile file. Could you guide me how to acheive this.

Thanks,
TJ
 
Old 06-30-2007, 05:05 PM   #4
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by tejpatil
Hi Dave,

I agree to put the path in .profile file, but i don't see any .profile file and kshrc file(i am not sure if we really need this) for this, instead of the .profile, there is .bash_profile file. Could you guide me how to acheive this.

Thanks,
TJ

can anybody help me with this....thanks.
 
Old 06-30-2007, 05:08 PM   #5
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Just make a new ~/.profile file with the text editor of your choice.
 
Old 06-30-2007, 06:24 PM   #6
tejpatil
Member
 
Registered: Feb 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ilikejam
Just make a new ~/.profile file with the text editor of your choice.

Thank you, I will try this.
 
  


Reply


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
Can I install KSH on Fedora 7 which already has bash on it tejpatil Linux - Software 4 06-14-2007 10:48 AM
PATH question satimis Linux From Scratch 5 09-15-2005 10:23 AM
bash/ksh variables question tpe Programming 2 08-11-2005 09:39 AM
NetPbm path on fedora Drogo Linux - Software 0 01-31-2004 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:44 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