The following quick command can be used to kill one or more processes found using the combination of ps and grep.
ps -ef | grep FooBar | awk '{print $2}' | xargs kill -9
Things that amuse me...
The following quick command can be used to kill one or more processes found using the combination of ps and grep.
ps -ef | grep FooBar | awk '{print $2}' | xargs kill -9
Posted by marcM at Wednesday, April 18, 2012
Received the following error from a Ruby application when it called require 'json'.
irb(main):002:0> require 'rubygems'
=> true
irb(main):004:0> require 'json'
LoadError: no such file to load -- json
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from (irb):4
from :0
sudo apt-get install libjson-ruby
irb(main):001:0> require 'json'
=> true
Posted by marcM at Saturday, April 14, 2012
Tags: json, linux, programming, ruby, ubuntu