View previous topic :: View next topic
|
Author |
Message |
David Beckham
New User
Joined: 04 Apr 2008 Posts: 28 Location: Chennai
|
|
|
|
Hi,
I am not able to execute OMVS system commands like pwd, ls, chmod,etc.., from OMVS.. It give the following error message
FSUM7351 not found
I have checked the command members are in /bin directory, but I am not sure why it's not finding the members. Please Help.
Thanks, |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
The FSUM7351 means the following:
Explanation: You attempted to execute a command that could not be found
User Response: Ensure that the command exists and that the PATH
environment variable is valid.
|
I tend to trust more system messages than the user judgement
issue the command echo $PATH to see the <unix> search path for executables
and amend accordingly
most probably You have a bad setup! |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I have checked the command members are in /bin directory, but I am not sure why it's not finding the members. |
If your site uses RACF, and if your OMVS segment is not set up correctly, it would not matter that /bin has the program binaries. The same would apply, as enrico pointed out, if your PATH did not include /bin in it. |
|
Back to top |
|
|
David Beckham
New User
Joined: 04 Apr 2008 Posts: 28 Location: Chennai
|
|
|
|
The PATH variable looked like this in the /etc/profile
PATH=/bin.
export PATH
I have changed it as following by referring the other LPAR in our system
PATH=/bin:/usr/lpp/java/IBM/J1.4/bin:.
export PATH
So, Now the commands work in OMVS session. Thanks... |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
a proper path should contain at least
for a <normal> user
/bin:/usr/bin:/usr/local/bin
for a user with <admin> capabilities ( the adjective depends on the <unix/linux> brand )
/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
the /usr/local things depend on the overall system setup
some unix/linux brands also install products in /opt so ... |
|
Back to top |
|
|
David Beckham
New User
Joined: 04 Apr 2008 Posts: 28 Location: Chennai
|
|
|
|
I am confused. /etc/profile is common for all the users, right? Do I need to specify two different PATH in the same profile for different users(normal and admin)?
Thanks |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
read the OMVS Unix System Service manuals for the exact details
as a general logic these tables are common behavior
processing sequence for BASH
Code: |
+----------------+-----------+-----------+------+
| |Interactive|Interactive|Script|
| |login |non-login | |
+----------------+-----------+-----------+------+
|/etc/profile | A | | |
+----------------+-----------+-----------+------+
|/etc/bash.bashrc| | A | | (*)
+----------------+-----------+-----------+------+
|~/.bashrc | | B | |
+----------------+-----------+-----------+------+
|~/.bash_profile | B1 | | |
+----------------+-----------+-----------+------+
|~/.bash_login | B2 | | |
+----------------+-----------+-----------+------+
|~/.profile | B3 | | |
+----------------+-----------+-----------+------+
|BASH_ENV | | | A |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
|~/.bash_logout | C | | |
+----------------+-----------+-----------+------+
sometimes instead of
+----------------+-----------+-----------+------+
|/etc/bash.bashrc| | A | |
+----------------+-----------+-----------+------+
is used
+----------------+-----------+-----------+------+
|/etc/bashrc | | A | |
+----------------+-----------+-----------+------+ |
processing sequence for ZSH
Code: |
+----------------+-----------+-----------+------+
| |Interactive|Interactive|Script|
| |login |non-login | |
+----------------+-----------+-----------+------+
|/etc/zshenv | A | A | A |
+----------------+-----------+-----------+------+
|~/.zshenv | B | B | B |
+----------------+-----------+-----------+------+
|/etc/zprofile | C | | |
+----------------+-----------+-----------+------+
|~/.zprofile | D | | |
+----------------+-----------+-----------+------+
|/etc/zshrc | E | C | |
+----------------+-----------+-----------+------+
|~/.zshrc | F | D | |
+----------------+-----------+-----------+------+
|/etc/zlogin | G | | |
+----------------+-----------+-----------+------+
|~/.zlogin | H | | |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
| | | | |
+----------------+-----------+-----------+------+
|~/.zlogout | I | | |
+----------------+-----------+-----------+------+
|/etc/zlogout | J | | |
+----------------+-----------+-----------+------+
|
sometimes the names change because it is common practice to use something along the lines of
Code: |
if [ -f /etc/<profilename> ] ; then
. /etc/<profilename>
fi |
and
Code: |
if [ -f ~/<profilename> ] ; then
. ~/<profilename>
fi |
repeated as many times needed for different aspects of the profile
PATH, ALIAS, COLOR SETTING, ...
Quote: |
Do I need to specify two different PATH in the same profile for different users(normal and admin)? |
usually depends on the standards
on linux systems a test is made on the uid and the path is set accordingly
UIDs grater than a certain number are usually just plain users |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I am confused. /etc/profile is common for all the users, right? Do I need to specify two different PATH in the same profile for different users(normal and admin)? |
/etc/profile is common for all OMVS users in Unix System Services. However, individuals can create a .profile in their home directory, and the values in it override the /etc/profile values. |
|
Back to top |
|
|
|