LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 11:00 AM   #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, 03: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, 07:54 PM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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



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 11:31 AM
Getting started in Open Source whereverjustice Linux - Newbie 2 04-21-2005 10:31 PM
samba server doesnt started upon boot scng Linux - Networking 2 09-09-2004 11:53 AM
ksh functions in .kshrc brian0918 Linux - Newbie 21 06-06-2003 05:32 PM
function in .kshrc to cd then ls brian0918 Linux - Newbie 1 06-04-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 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
Open Source Consulting | Domain Registration