LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help Me Set Environmental Variable In Nctuns 4.0 (https://www.linuxquestions.org/questions/linux-software-2/help-me-set-environmental-variable-in-nctuns-4-0-a-676664/)

kathiravan 10-15-2008 10:08 PM

Help Me Set Environmental Variable In Nctuns 4.0
 
sir
im using bash shell,and used commands given in read me file to insert environmental variables
export NCTUNSHOME=/usr/local/nctuns
export NCTUNS_TOOLS=/usr/local/nctuns/tools
export NCTUNS_BIN=/usr/local/nctuns/bin
also i used the alternate command "source/user/local/nctuns/etc/nctuns.bash"
but when i used command "printenv | grep NCTUns" to check whether environmental variables set,nothing showed out,which meant these variables not set.
i have disabled SELINUX and also ip table service was stopped.
please help me to set environmental varible, so that i can proceed my work.thanks in advance

wired4fx 10-15-2008 10:53 PM

well now... stu
 
I am no genius but did you add the $variable? Probably a stupid question, but the $ before the actual variable defines that variable in a local context...please let me know so I can help further!

kathiravan 10-16-2008 10:15 AM

i did as it is given in GUI manual
 
Quote:

Originally Posted by wired4fx (Post 3311627)
I am no genius but did you add the $variable? Probably a stupid question, but the $ before the actual variable defines that variable in a local context...please let me know so I can help further!

actually the GUI manual given for the software, does not have $ symbol infront of variable, i too tried $ symbol in front of variable, but no change

jiml8 10-16-2008 10:32 AM

linux is case sensitive. In your post you exported NCTUNS but in your grep you search for NCTUns. This will certainly fail to find any instances.

If you wish to do a case insensitive grep, do a grep -i NCTUns. Alternatively maintain your case. You also can check by doing an echo $NCTUNS_BIN (or whatever).


All times are GMT -5. The time now is 06:20 AM.