LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-20-2006, 07:51 PM   #1
anobansa
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Unhappy bash: setenv: command not found


i can not run setenv or path commands. I tried to search earlier post, they did not seem to work.

Plz suggest.
 
Old 09-20-2006, 08:52 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
setenv is a shell built in function for the c shell and the tc shell. bash DOES have the printenv command as a shell built in function.
Code:
root> sentenv
-bash: sentenv: command not found
root> /usr/bin/tcsh
...
root# setenv
LESSKEY=/etc/lesskey.bin
NNTPSERVER=fart
INFODIR=/usr/local/info:/usr/share/info:/usr/info
MANPATH=/usr/share/man:/usr/local/man:/usr/X11R6/man:/opt/gnome/share/man
...
_=/usr/bin/tcsh
VENDOR=suse
GROUP=root

Last edited by stress_junkie; 09-20-2006 at 08:57 PM.
 
Old 09-26-2006, 06:57 AM   #3
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
Could be your /sbin directory isn't in your PATH - which dictates which directories your system looks in for programs to execute from the CLI.

Try

/sbin/setenv [yourstuff] ...

See if that works
 
Old 09-26-2006, 08:11 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,649

Rep: Reputation: 391Reputation: 391Reputation: 391Reputation: 391
Quote:
Originally Posted by goggyturk
Could be your /sbin directory isn't in your PATH - which dictates which directories your system looks in for programs to execute from the CLI.

Try

/sbin/setenv [yourstuff] ...

See if that works
It won't work. /sbin/setenv doesn't exist.

As stress_junkie already pointed, setenv is a csh builtin command, which means it is processed internally by this shell.

Use the export builtin with bourne shells.
 
Old 09-29-2006, 03:16 AM   #5
goggyturk
LQ Newbie
 
Registered: Oct 2003
Posts: 22

Rep: Reputation: 15
Sorry 'bout that... I'll be more careful in future
 
  


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
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM
setenv - bash - export allelopath Linux - General 4 04-17-2005 06:38 AM
bash: pg: command not found Chomper Programming 2 02-05-2005 03:22 AM
bash -command not found- K3V Linux - Newbie 7 09-30-2004 04:57 PM
bash: command not found jc80 Fedora 3 03-14-2004 04:11 PM


All times are GMT -5. The time now is 06:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration