How to get the command line used to start a given process?

See also: How do I kill all running PHP CLI processes?