Hot answers tagged solaris
Here's one way of doing it. In Solaris you would use the pargs -ae <pid> command for this. The line that says argv: will tell you what executable is running. This is however not enough as you do not know the current directory of that process when it was started so if arg0 is not fully qualified then you don't have the full path to the running ...
You can use pwdx in solaris and linux. pwdx <pid_number> example: pwdx $$ 25711: /export/home/pippo
Solaris is likely running sendmail. Typical system files that would be involved would be: /etc/mail/aliases /etc/mail/local.cf If the user has a .forward or .vacation file in the home directory, then that may change delivery behavior. Check the logs in /var/adm to see if there are any hints. CHeck any of the messages in the mail queue to see where they ...
On a Sun keyboard, press the two keys "STOP" and "A". That will get you an OK prompt. The init 0 will poweroff the Unix/Linux computer. (yes I know this post is very old)
The most direct Solaris equivalent is /proc/<pid>/path/a.out For example: % ls -l /proc/$$/path/a.out lrwxrwxrwx 1 alanc staff 0 Mar 13 21:16 /proc/2892/path/a.out -> /usr/bin/tcsh*
Only top voted, non community-wiki answers of a minimum length are eligible