Wednesday, May 11, 2011

Find all arguments of a running process

Many processes have long command lines arguments, and it is sometime difficult to find all the arguments that the process was inintially started with.

unfortunately with the ps (/usr/bin/ps) command, users can only see the first 80 characters of command line, rest are ignored. So the user can not see the complete list of command line arguments.

Solution:
1. Use pargs argument (ex. ps -eaf | pargs -a )
or
2. Use /usr/ucb/ps command ( /usr/ucb/ps -awwx | grep )

No comments:

Post a Comment