instance method
find_processes_via_grep
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3 PrivateSignature
find_processes_via_grep()
No documentation comment.
Source
# File railties/lib/commands/process/reaper.rb, line 82
def find_processes_via_grep
lines = `ps axww -o 'pid command' | grep #{@keyword}`.split(/\n/).
reject { |line| line =~ /inq|ps axww|grep|spawn-fcgi|spawner|reaper/ }
lines.map { |line| line[/^\s*(\d+)/, 1].to_i }
end
Defined in railties/lib/commands/process/reaper.rb line 82
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Killer