Sorry - I forgot to attach /etc/profile in my previous post :-(


Thanks for the suggestion, but it doesn't work. It seems Mandrake handles
the path differently. I'm attaching /etc/profile. Notice that at the end of the
file I added the PATH line. I also put in an ECHO so I'd know if it was
working. I do get the echo and the path **seems** to now include the added
directory I wanted. 

But, when I type **echo $PATH** in a terminal window (after seeing the echoed
line), the path **does not** include my directory. Another strange thing is
that in the original Mandrake /etc/profile there's another PATH line (5 lines
before the end). This line adds /usr/games to the path, but also has no effect. 


On 12-Nov-2000 Sagi Bashari wrote:
> Simple, add that line to /etc/profile.
> 
> On Sun, 12 Nov 2000 [EMAIL PROTECTED] wrote:
> 
>> Hi,
>>
>> This is going to sound like a silly question, but after looking in every
>> HOWTO
>> I could think of and even on the net, I still can't find the answer to what
>> must be a very trivial question.
>>
>> How do I add a directory to the PATH? I want to add a directory that
>> contains
>> all sorts of scripts I use regularly. I tried:
>>
>> PATH=$PATH:/data1/perl; export PATH
>>
>> but that only adds the directory to the terminal session I'm in - I want
>> this
>> **always** added to the path when I boot.
>>
>> TIA
>>
>> //-------------------------
>> Shlomo Solomon
>> E-Mail: [EMAIL PROTECTED]
>> http://come.to/shlomo.solomon
>> Date: 12-Nov-2000   Time: 19:01:34
>>
>> Message sent by XFMail on a LINUX Mandrake 7.0 machine
>> //-------------------------
>>
>> =================================================================
>> To unsubscribe, send mail to [EMAIL PROTECTED] with
>> the word "unsubscribe" in the message body, e.g., run the command
>> echo unsubscribe | mail [EMAIL PROTECTED]
>>
>>
> 
>                _
>  ___ __ _ __ _(_)     Sagi Bashari
> (_-</ _` / _` | |      - [EMAIL PROTECTED]
> /__/\__,_\__, |_|
>          |___/
> 
> 
> =================================================================
> To unsubscribe, send mail to [EMAIL PROTECTED] with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail [EMAIL PROTECTED]

//-------------------------
Shlomo Solomon
E-Mail: [EMAIL PROTECTED]
http://come.to/shlomo.solomon
Date: 23-Nov-2000   Time: 16:59:38

Message sent by XFMail on a LINUX Mandrake 7.2 machine
//-------------------------

profile

Reply via email to