How to check the shell of a running process?
1
vote
0
answers
444
views
I am working on Solaris 11 zone and I need to check which shell a running process is using. I have the PID but I am not sure where to get the information from.
I have a scenario where some resource limits (limit on open file descriptors) should be applied to all processes. But it looks like some processes are not following the limit. It might be possible that they are being launched using a different shell which has different limit parameters.
For a little insight, I am using the
ulimit
command in /etc/profile
to set the files limit. That way, it gets set for every session, whenever a user logs in. The problem scenario is explained in detail in this question .
So I just need to see whether those processes are using Bash or some other shell. That would answer whether the assumption is correct or not.
Asked by Alchemist
(591 rep)
Dec 31, 2017, 06:38 AM
Last activity: Dec 31, 2017, 11:16 AM
Last activity: Dec 31, 2017, 11:16 AM