Setting env. var and keeping it when logging in?

Olivier Gautherot olivier at gautherot.net
Tue Sep 14 20:17:38 PDT 2004


Hi Rob!

robg wrote:

>hi,
>
>id like 
>
>PURE_PASSWDFILE=/usr/local/etc/pureftpd.passwd
>PURE_DBFILE=/usr/local/etc/pureftpd.pdb
>
>i did: 
>
>setenv PURE_PASSWDFILE /usr/local/etc/pureftpd.passwd
>setenv PURE_DBFILE /usr/local/etc/pureftpd.pdb
>
>but when i relogin, they dissapear from `printenv`.. how do i keep it?
>
>thanks
>  
>

Just a dumb question: did you insert these lines in your .cshrc
or .tcshrc? (assuming you use csh or tcsh as your login shell).
Your environment disappears when you log out (that's normal
behavior)

Cheers
    Olivier


More information about the freebsd-newbies mailing list