🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: ch.comp.os.linux
4 messages
4 total messages Started by 95460801 Sun, 24 Jan 1999 00:00
How to set environment variable?
#24798
Author: 95460801
Date: Sun, 24 Jan 1999 00:00
11 lines
1004 bytes
Hello,	I can't set environment variable in Red Hat Linux 5.2 by setenv as
follow:  setenv HARVEST_HOME /usr/local/harvest

     Error message of bad command is prompted, do you know how to set?

     Thanks a lot! Please reply me in E-mail.

Emily

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    
Re: How to set environment variable?
#24801
Author: Stef
Date: Sun, 24 Jan 1999 00:00
12 lines
830 bytes
: Hello,	I can't set environment variable in Red Hat Linux 5.2 by setenv as
: follow:  setenv HARVEST_HOME /usr/local/harvest

I fyou are in bash or one of its relatives, the correct syntax is:
export HARVEST_HOME=/usr/local/harvest

Stef
-- 
WebMaster D-WERK
UNIX and Windows NT administration, SOS-ETH 
ETH Zurich
stef@hoes.li        http://hoes.li
Re: How to set environment variable?
#24804
Author: Dominik Fretz
Date: Sun, 24 Jan 1999 00:00
8 lines
888 bytes
hi

man ne grundlegende frage dazu:

weshalb muss man umgebungsvarabeln nach dem setzten noch exportiern?
ist da irgend ein tieferer sinn dahinder?

DOminik
Re: How to set environment variable?
#24806
Author: Stef
Date: Sun, 24 Jan 1999 00:00
15 lines
970 bytes
: weshalb muss man umgebungsvarabeln nach dem setzten noch exportiern?
: ist da irgend ein tieferer sinn dahinder?

mit
VARIABLE=Wert
setzt Du den Wert der Variablen (wer haette das gedacht...). Aber erst
indem Du den Wert auch exportierst, weiss die Shell, dass es sich
hierbei um eine _Umgebungs_variable handelt.

Stef
-- 
WebMaster D-WERK
UNIX and Windows NT administration, SOS-ETH 
ETH Zurich
stef@hoes.li        http://hoes.li
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads