View previous topic :: View next topic |
Author |
Message |
kybla n00b

Joined: 21 Dec 2005 Posts: 37
|
Posted: Wed Apr 26, 2006 12:23 pm Post subject: [Environnement] .profile |
|
|
Bonjour,
Je viens de créer un .profile dans mon home directory contenant un export VAR=VAL. Pourtant lorsque je me log sous cette utilisateur la variable n'a pas été exporter. Est ce un comportement normal ?? Comment dois-je faire pour exporter une variable automatiquement dès lors que je me suis logué ?
Merci pour votre aide. |
|
Back to top |
|
 |
k-root Guru


Joined: 08 Jan 2005 Posts: 428
|
Posted: Wed Apr 26, 2006 1:25 pm Post subject: |
|
|
.profile est lut au login, .bashrc est lut a chaque lancement du shell.
relogue toi, lance un bash --login, ou place l'export dans ton .bashrc  _________________
boozo wrote: | Gentoo, ça mange des ours et baffe des buffles par 37°C avec un bob et des tongs |
|
|
Back to top |
|
 |
anigel Bodhisattva


Joined: 14 Apr 2003 Posts: 1894 Location: Un petit bled pas loin de Limoges ;-)
|
Posted: Wed Apr 26, 2006 1:43 pm Post subject: |
|
|
Ma méthode, pour éviter ce genre d'ennuis :
Code: | touch .profile
chmod 700 .profile
ln -s .profile .bashrc |
Ainsi, les 2 fichiers sont lus par le système, exécutables, et contiennent la même chose . _________________ Il y a 10 sortes d'individus en ce bas-monde : ceux qui causent binaire, et les autres. |
|
Back to top |
|
 |
kybla n00b

Joined: 21 Dec 2005 Posts: 37
|
Posted: Wed Apr 26, 2006 2:04 pm Post subject: |
|
|
Merci à vous |
|
Back to top |
|
 |
|