LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-06-2007, 06:50 PM   #1
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Rep: Reputation: 15
setenv not working???


hi all,
m using this command
setenv PATH /home/tupac/codeploy:$PATH
but it shows setenv:command not found
wat to do???
plz helpppppp
 
Old 06-06-2007, 06:52 PM   #2
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
nd i after that i have to do
rehash
which is also not working.. same problem , command not found
 
Old 06-06-2007, 06:54 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
You aren't using the csh or tcsh. You are using something else.

try "echo $SHELL" to see which one.
 
Old 06-06-2007, 06:55 PM   #4
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
it is bash..
 
Old 06-06-2007, 07:04 PM   #5
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
wats the alternate??
 
Old 06-06-2007, 07:10 PM   #6
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Do you want to use tcsh/csh or do you want to continue using bash? If you want to continue using bash, type:
Code:
PATH=/home/tupac/codeploy:$PATH
export $PATH
If you want to use tcsh/csh, then you will need to change your shell to the one you want.

Code:
chsh -s tcsh
 
Old 06-06-2007, 07:10 PM   #7
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 13.37 Android 4.0
Posts: 2,248

Rep: Reputation: 46
Ok...

1. Try using actual English

2. It would help to know what distro you're using
 
Old 06-06-2007, 07:23 PM   #8
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
ok.. i am using bash only but here is the output on
export$PATH

/home/tupac/codeploy:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/tupac/bin': not a valid identifier
 
Old 06-06-2007, 07:27 PM   #9
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
and when i am trying to change the shell to tcsh or csh it is showing that shell has been changed succesfully but when i am checking it with echo $SHELL it is still bash..
 
Old 06-06-2007, 08:05 PM   #10
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
Sorry, when you change your shell, it will only take effect on your next login. Log out and back in after you run chsh.
 
Old 06-06-2007, 08:15 PM   #11
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
thanks a lot. it worked
 
Old 06-06-2007, 08:23 PM   #12
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
It seems I was mistaken as well as regard to the export. It isn't necessary in bash.
 
Old 06-07-2007, 01:51 AM   #13
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
may be....
 
  


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
setenv command? BlueSpirit Slackware 6 08-13-2006 06:17 PM
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 05:26 PM
Setenv IBP Linux - Software 3 12-20-2002 10:05 AM
setenv DISPLAY toxic53 Linux - Newbie 2 09-27-2001 02:47 AM
setenv ???? toxic53 Linux - Networking 1 09-26-2001 12:30 PM


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

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