<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">you can try doing<br><br>> export COMETDESIGNDIR=/home/user/bin/cometdesign_3.20.03<br><br>and then add <br>$COMETDESIGNDIR/bin<br><br>to your path.<br><br>Raul Suarez<br>
<br>
Technology consultant<br>
Software, Hardware and Practices<br>
_________________<br>
Twitter: rarsamx<br>
http://rarsa.blogspot.com/ <br>
An eclectic collection of random thoughts<br><br>--- On <b>Mon, 6/14/10, Jon L <i><jdtech@rogers.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jon L <jdtech@rogers.com><br>Subject: [kwlug-disc] Shell Environment Variables<br>To: kwlug-disc@kwlug.org<br>Received: Monday, June 14, 2010, 10:08 PM<br><br><div id="yiv923982643"><style type="text/css"><!--#yiv923982643 DIV {margin:0px;}--></style><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><div>I have a question regarding setting of environment variables.  I am using a bash shell. OpenSuse 11.2<br><br>I am attempting to run a script to install some software.  Limited documentation explains as follows.<br><br>3.To run Comet-Design on a Unix platform,execute the comet design script located in the $COMETDESIGNDIR/bin directory. If $COMETDESIGNDIR/bin<br>was added to the current
 search path,then just enter“cometdesign”at the command prompt.<br><br>Commands run using sudo<br><br>Software directory (cometdesign_3.20.03) copied to: home/user/bin/ <br><br>cometdesign_3.20.03/bin contain the script to run the program<br><br>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<br><br>echo
 $COMETDESIGNDIR  command shows no value???<br><br>I added /home/user/bin/cometdesign_3.20.03/bin to the $PATH variable which worked successfully<br><br>I execute the shell script using ./cometdesign ,which is the name of the script<br><br>However when I run the script I get this message.<br><br>"Environment Variable has not been set"<br><br>Question #1: How can I verify the new variable has been added correctly?  I tried using the env command without much success.<br><br>Question #2: Do I need to assign the value of $COMETDESIGNDIR equal to the $PATH variable to get the script to run?<br><br>Some help and pointers with the correct syntax would be greatly appreciated.<br><br>Thanks<br><br>Jon<br><br><br><br><br><br><br><br><br><br><br></div>
</div></div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>kwlug-disc_kwlug.org mailing list<br><a ymailto="mailto:kwlug-disc_kwlug.org@kwlug.org" href="/mc/compose?to=kwlug-disc_kwlug.org@kwlug.org">kwlug-disc_kwlug.org@kwlug.org</a><br><a href="http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org" target="_blank">http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org</a><br></div></blockquote></td></tr></table><br>