I use this method to run an external program:

output=`uname -r | sed 's/\([^\.]*\.[^\.]*\)\.*.*/\1/'`
puts output

ruby will ignore the sed command. Doesn't ruby support "|"?
-- 
Posted via http://www.ruby-forum.com/.