On SunOS there is pargs command that prints the command line arguments passed to the running process.
pargs
Is there is any similar command on other Unix env
If you want to get a long-as-possible (not sure what limits there are), similar to Solaris' pargs, you can use this on Linux & OSX:
ps -ww -o pid,command [-p ... ]