Hi,
I am running on Sun10 platform. I am trying to retrieve the full command line for a process by running ps (/usr/bin/ps or /usr/ucb/ps).
Running the "/usr/ucb/ps -agxuwwwww PID" with the user that executed the process i get the full command line. Running the same command with another user on the same process , return only a part of the command.
Is there a way to get the full command, for processes that their user is not the user that started the process?
Another interesting issue is when running "/usr/ucb/ps -e PID", it works fine. Trying to capture the output to a file or pipe return empty result.
For example
/usr/ucb/ps -e 7933 # result "bla bla bla bla"
/usr/ucb/ps -e 7933 > a.out; more a.out # result empty
Thanks in advance,
Fredy