I am logging into a solaris server, switching to bash, then switching to another user "sruser" and switching to bash.
/home/batch/sruser/
is the home directory of the user "sruser".
The issue is ps is not giving any output when run in the home directory –
# pwd
/home/batch/sruser/
# ps
# cd dir1
/home/batch/sruser/dir1
# ps
PID TTY TIME CMD
17867 pts/1789 0:00 bash
17165 pts/1789 0:00 ksh
20435 pts/1789 0:00 ps
#
Don't know what could be the issue. Don't even know where to start looking for whatever could be the issue.
Best Answer
$PATH
has.
(cwd) and there is a fileps
with executable permissions in the home directory.Hence the command was not giving any output.