Thread: Is this the right way?
i created environment variable adding following line ~/.bashrc file
i triedcode:export ejbca_home=/home/user/ejbca
when typecode:export ejbca_home="/home/user/ejbca"
orcode:printenv
i see has been set. however, when usecode:echo $ejbca_homeit returns null value.code:system.getenv("ejbca_home")
replaced
and not give null value. think may not have set environment variable properly? have logged out , logged in, restarted , shutdown , turn on nothing seems work.code:system.getenv("path")
can please![]()
proper method
appended ~/.bashrccode:path=/path/to/new/file;$path
in 1 step using shell command
also make sure bashrc. it's pain when accidently wipe out filecode:echo export path=\$\{path\}:\path/to/new/file >> ~/.bashrc
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Is this the right way?
Ubuntu
Comments
Post a Comment