1836997 Members
2493 Online
110111 Solutions
New Discussion

Profile

 
Wamaitha
Frequent Advisor

Profile

Hello all, i have logged onto this box evereyday. today i begin getting messages that needed me to fully qualify a command.
this is the message i am getting:
userabc@dynomite:/home/userabc> envs
ksh: envs: not found

what could have cause the change. I have verified in SAM that my shellis setup as ksh.
looking forward to hear from you.
thanks in advance.
7 REPLIES 7
Arunkumar.B
Trusted Contributor

Re: Profile

Hi,

If u r a non-root user.This msg might be set by ur root user in motd file..


With Cheers
Arunkumar.B
Necessity breaks iron
Nicolas_17
Frequent Advisor

Re: Profile

Hi Wamaitha,

This doesn't look like a shell problem to me, but more of a path issue. What do these commands tell you:

find / -name envs
echo $PATH

Nicolas.
Rodney Hills
Honored Contributor

Re: Profile

Do a "echo $PATH" to see what your current path is set to. If it does not include the path to where "envs" is, then it needs to be set either in your local .profile file or in the system wide /etc/profile file.

Do a "alias" command to see if your system administrator tried to alias the name.

HTH

-- Rod Hills
There be dragons...
Wamaitha
Frequent Advisor

Re: Profile

Here is the output i get:

find / -name envs
.
.
find: cannot open /tmp/tmpdepot/depot/PHKL_33408
find: cannot open /tmp/tmpdepot/depot/PHKL_27096
find: cannot open /tmp/tmpdepot/depot/PHKL_31993
find: cannot open /tmp/tmpdepot/depot/PHKL_32061
find: cannot open /tmp/tmpdepot/depot/PHNE_28888
find: cannot open /tmp/tmpdepot/depot/PHNE_30661
find: cannot open /tmp/tmpdepot/xdepot/catalog
find: cannot open /tmp/tmpdepot/xdepot/PHSS_30742
find: cannot open /tmp/tmpdepot/xdepot/PHSS_29121
find: cannot open /tmp/tmpdepot/xdepot/BUNDLE
find: cannot open /tmp/tmpdepot/depot6/catalog
find: cannot open /tmp/tmpdepot/depot6/PHCO_33967
find: cannot open /tmp/tmpdepot/depot6/PHKL_33390
find: cannot open /tmp/tmpdepot/depot6/PHNE_33791
find: cannot open /tmp/tmpdepot/depot6/PHSS_30742
.
.


echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/
usr/bin/X11:/usr/contrib/bin/X11:/usr/sbin/diag/contrib:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/o

alias
autoload=typeset -fu
cat=/usr/bin/cat
false=let 0
functions=typeset -f
hash=alias -t -
history=fc -l
integer=typeset -i
nohup=nohup
r=fc -e -
stop=kill -STOP
suspend=kill -STOP $$
true=:
type=whence -v
vi=/usr/bin/vi
Nicolas_17
Frequent Advisor

Re: Profile

Two things: we still don't know where the "envs" file is and there seems to be a problem at the end of your PATH variable. It's not supposed to end by :/o unless you really have a directory called "o" under /.

Find the envs file on the system first and ajust your PATH variable accordingly by editing it in .profile.

Nicolas.
Wamaitha
Frequent Advisor

Re: Profile

this is what i get with echo $PATH:

echo $PATH
/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/hparray/bin:/opt/nettladm/bin:/opt/upgrade/bin:/opt/fcms/bin:/opt/pd/bin:/opt/resmon/bin:/opt/gnome/bin:/opt/perf/bin:/usr/bin/X11:/usr/contrib/bi
n/X11:/usr/sbin/diag/contrib:/opt/mozilla:/opt/wbem/bin:/opt/wbem/sbin:/opt/graphics/common/bin:/opt/mx/bin:/opt/perl/bin:/opt/prm/bin:/opt/iexpress/sudo/bin:/usr/:/usr/sbin:/usr/local:/usr/
local/bin:/opt:/opt/iexpress/sudo/bin/sudo:.
Nicolas_17
Frequent Advisor

Re: Profile

I think you simply "misplaced" the envs file...it might have been moved, removed or renamed.

By recreating or moving the file into one of the directories listed in your PATH, you should have no problems.

Nicolas.