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.
type psorwhich psto see what is being executed – phunehehe Feb 21 '11 at 13:05root? But how would.end up in root'sPATH? Hope you didn't add it there yourself. – alex Feb 21 '11 at 14:31type psshows that/usr/bin/psis being executed, runtruss psto see what's going on. (But.in$PATHis the most obvious explanation.) – Gilles 'SO- stop being evil' Feb 21 '11 at 21:11