LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-22-2011, 05:23 PM   #1
sharky
Member
 
Registered: Oct 2002
Posts: 396

Rep: Reputation: 37
set environment variable is tcl


How are environment variable set in tcl?

I googled and binged but can't find a single example. I see tons of discussion on how to get environment variables but nothing on setting environment variables.

I tried "set $env(MYVAR) xxxx" but it didn't work.
 
Old 04-22-2011, 05:51 PM   #2
sharky
Member
 
Registered: Oct 2002
Posts: 396

Original Poster
Rep: Reputation: 37
I see what I was doing wrong.

I need to leave the "$" out of my set command. "set env(MYVAR) xxxx" instead of "set $env(MYVAR) xxxx"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set environment variable yuan13452 Linux - Software 7 09-03-2007 06:23 PM
How to set a value of environment variable? ukrainet Linux - Newbie 1 12-28-2004 05:33 AM
Set Environment Variable lloyd_stevens Linux - Software 1 07-30-2003 01:38 PM
How to set a environment variable in rh? yenonn Linux - Newbie 11 02-21-2003 11:24 PM
how to set CC environment variable mr.moto General 2 12-18-2001 02:02 AM


All times are GMT -5. The time now is 06:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration