SunQuest
           UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old September 19th, 2004, 06:18 AM
amine amine is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 26 amine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation bash: setenv: command not found?

I have to install a package on my computer. To make that package working, an environment variable must be added to the system. So, I tried the following command line:
/*******************************************************/
[root@localhost ref17-09-04]# setenv ZIPPER_PACK /mnt/winE/Programs/mesh/ref17-09-04/zipper-1.14/
bash: setenv: command not found
[root@localhost ref17-09-04]#
/*******************************************************/
I tried that command in many folders (/root/, …) but in vain.
I can't understand why my system doesn't find even the help exists!!!
In fact:
/*******************************************************/
[root@localhost ref17-09-04]# man setenv
returns me the entire help...
/*******************************************************/

My OS is Linux Fedora Core 1.

The same problem is faced with these commands too: environ, getenv, putenv, …

Please help me to make that commands working.

Thanks…

Reply With Quote
  #2  
Old September 19th, 2004, 06:34 AM
guggach guggach is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Middle Europa
Posts: 1,083 guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level)guggach User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 19 h 44 m 45 sec
Reputation Power: 9
setenv is not a command, but a c-shell built-in function,
i don't know if bash also uses it.
in BOURNE sh: XXX=abc; export XXX; do-thejob
in KORN sh: export XXX=abd; do-thejob
in C-sh (the best on commando line) setenv XXX abc; do-thejob
the best way works in bourne, korn, bash and cron:
env XXX=abc do-thejob

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > bash: setenv: command not found?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway