LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 05: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, 05:54 PM   #3
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Debian, FreeBSD
Posts: 1,450

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

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

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

Original Poster
Rep: Reputation: 15
wats the alternate??
 
Old 06-06-2007, 06: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, 06:10 PM   #7
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
Ok...

1. Try using actual English

2. It would help to know what distro you're using
 
Old 06-06-2007, 06: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, 06: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, 07: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, 07:15 PM   #11
birjodh
Member
 
Registered: Jun 2007
Posts: 44

Original Poster
Rep: Reputation: 15
thanks a lot. it worked
 
Old 06-06-2007, 07: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, 12:51 AM   #13
birjodh
Member
 
Registered: Jun 2007
Posts: 44

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


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 command? BlueSpirit Slackware 6 08-13-2006 05:17 PM
setenv CLASSPATH ? mickeyboa Fedora 1 07-24-2005 04:26 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 - Newbie

All times are GMT -5. The time now is 06:28 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