# File lib/ruote/util/look.rb, line 113 def self.ps s = `ps aux | egrep '^.+ +#{$$} '`.split(' ') s[10] = s[10..-1].join(' ') # the command h = {} %w[ user pid cpu mem vsz rss tt stat started time command ].each_with_index { |k, i| h[k.to_sym] = s[i] } h end