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 03-08-2004, 12:00 PM   #1
pkan
LQ Newbie
 
Registered: Mar 2004
Posts: 1

Rep: Reputation: 0
Question Doesnt source .kshrc when ksh is started


Hi!
When a start a ksh, it doesnt source my .kshrc file. Even when I try to do it manually, it doesnt go into effect at all. I borrowed the file from someone else to make sure that I dont have any errors in the .kshrc file. This is what it says:

$ . .kshrc
/bin/ksh: .: .kshrc: not found


Can someone help please?

Thanks!
 
Old 03-08-2004, 04:41 PM   #2
stupid_guy
Member
 
Registered: Jun 2003
Distribution: mandrake 9.2
Posts: 57

Rep: Reputation: 15
where did you put the .kshrc? because .kshrc is not in /bin/ksh when I looked.

usually .*rc files are in your home directory.
try this: get your borrowed file and dump it into your home dir.

personally, I prefer bash though...
 
Old 03-08-2004, 08:54 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,649

Rep: Reputation: 391Reputation: 391Reputation: 391Reputation: 391
to have korn shell execute a .kshrc or any other rc file, you need to do:
export ENV=~/.kshrc in your .profile

True at least with the *real* ksh
 
  


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
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 12:31 PM
Getting started in Open Source whereverjustice Linux - Newbie 2 04-21-2005 11:31 PM
samba server doesnt started upon boot scng Linux - Networking 2 09-09-2004 12:53 PM
ksh functions in .kshrc brian0918 Linux - Newbie 21 06-06-2003 06:32 PM
function in .kshrc to cd then ls brian0918 Linux - Newbie 1 06-04-2003 03:42 PM


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration