... but if your OS is Sun Solaris you will only get a maximum of 80 characters of the command line, at least with 'ps'. See why it was important to say which OS you were on?
Comment on Re: (OT) How to use ps unix command to see the task full command
You might be able to use the SunOS style /usr/ucb/ps -axw to get more information. I think the -l flag gives a longer listing and the -e flag gives the environment for each process as well.