LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 06-21-2004, 08:04 PM   #1
J0sep
LQ Newbie
 
Registered: Apr 2004
Location: Chile
Distribution: Gentoo
Posts: 15

Rep: Reputation: 0
help with command setenv


Hello I need help with the command setenv, it doesen't work, I'm using Red Hat 9 the command is as follows:

setenv PATH /usr/local/ActivePerl-5.6/bin:$PATH

I'm as root, is the command right ? or I'm missing something?

Pleaso Help!

OK THNX.
 
Old 06-21-2004, 08:32 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
setenv is used to set environment variables in csh (C shell).

Most people using Linux use bash (Bourne again shell).

One way to tell which shell you're using is to look at your prompt. If your prompt is a % character, you're using csh; if it's a $, you're using bash.

Here's an example of how to set an environment variable in bash:

PATH=/usr/local/ActivePerl-5.6/bin:$PATH

Lyle
 
Old 06-21-2004, 08:57 PM   #3
J0sep
LQ Newbie
 
Registered: Apr 2004
Location: Chile
Distribution: Gentoo
Posts: 15

Original Poster
Rep: Reputation: 0
Thank U man, it seems that works, no error displayed.
any way my promt is a # and worked with command

PATH=/usr/local/ActivePerl-5.6/bin:$PATH

Ok thnx again

J0sep
 
Old 06-22-2004, 06:52 PM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 392

Rep: Reputation: 55
You're welcome!

I should have said: One way to tell which shell you're using is to look at your prompt when logged in as a normal (non-root) user. If your prompt is a % character, you're using csh; if it's a $, you're using bash.

Lyle
 
  


Reply



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
setenv:too many argument petero Programming 1 06-02-2005 04:23 AM
setenv within a program doesn't last mvt Programming 8 04-26-2004 03:39 PM
Setenv IBP Linux - Software 3 12-20-2002 09:05 AM
setenv DISPLAY toxic53 Linux - Newbie 2 09-27-2001 01:47 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration