If you know the name of a running command line process, but don't know the precise command line with which it was invoked, you can run a command such as this one to return the complete command:
ps -axwwo command | grep lame | grep -v grep > ~/Desktop/lame_command.txt
This example would save a file to your desktop containing the commands that initiated running processes which included the term lame, for example.
Mac OS X Hints
http://hints.macworld.com/article.php?story=20070628123330198