[kwlug-disc] Shell Environment Variables
Raul Suarez
rarsa at yahoo.com
Mon Jun 14 22:21:20 EDT 2010
you can try doing
> export COMETDESIGNDIR=/home/user/bin/cometdesign_3.20.03
and then add
$COMETDESIGNDIR/bin
to your path.
Raul Suarez
Technology consultant
Software, Hardware and Practices
_________________
Twitter: rarsamx
http://rarsa.blogspot.com/
An eclectic collection of random thoughts
--- On Mon, 6/14/10, Jon L <jdtech at rogers.com> wrote:
From: Jon L <jdtech at rogers.com>
Subject: [kwlug-disc] Shell Environment Variables
To: kwlug-disc at kwlug.org
Received: Monday, June 14, 2010, 10:08 PM
I have a question regarding setting of environment variables. I am using a bash shell. OpenSuse 11.2
I am attempting to run a script to install some software. Limited documentation explains as follows.
3.To run Comet-Design on a Unix platform,execute the comet design script located in the $COMETDESIGNDIR/bin directory. If $COMETDESIGNDIR/bin
was added to the current search path,then just enter“cometdesign”at the command prompt.
Commands run using sudo
Software directory (cometdesign_3.20.03) copied to: home/user/bin/
cometdesign_3.20.03/bin contain the script to run the program
I added the variable name is $COMETDESIGNDIR using the set command. I tried setting the value to /home/user/bin/cometdesign_3.20.03/bin
echo
$COMETDESIGNDIR command shows no value???
I added /home/user/bin/cometdesign_3.20.03/bin to the $PATH variable which worked successfully
I execute the shell script using ./cometdesign ,which is the name of the script
However when I run the script I get this message.
"Environment Variable has not been set"
Question #1: How can I verify the new variable has been added correctly? I tried using the env command without much success.
Question #2: Do I need to assign the value of $COMETDESIGNDIR equal to the $PATH variable to get the script to run?
Some help and pointers with the correct syntax would be greatly appreciated.
Thanks
Jon
-----Inline Attachment Follows-----
_______________________________________________
kwlug-disc_kwlug.org mailing list
kwlug-disc_kwlug.org at kwlug.org
http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20100614/4df8e7e6/attachment.htm>
More information about the kwlug-disc
mailing list