If there is more than one way, please list them. I only know of one, but I\'m wondering if there is a cleaner, in-Ruby way.
Under Linux you can obtain a lot of attributes of running programm using proc filesystem:
File.read("/proc/#{pid}/cmdline") File.read("/proc/#{pid}/comm")