Using a partial multiple times in a view

Hi,
im trying to execute multiple cmds in a method that use the same view
which
has multiple calls to the same partial inside it.
However i cant get it to work correctly, so any help here would be
appreciated

heres the controller code
def index
cmd_df = “df -Ph”
exec_cmd(cmd_df)

cmd_sys = "uname -a"
exec_cmd(cmd_sys)

end

private
def exec_cmd(cmd)
r=IO.popen(cmd, “r”)
@result = r.readlines($/)
r.close_read
return @result
end

heres the index view

<%= render_partial 'shared/page_header_image', 'image' => '/images/system.gif' %> <%= render_partial 'shared/page_menu' %>

Overview

<%= render_partial 'shared/grid', 'title' => 'Filesystems' ,'cols' => 6 %>

System

<%= render_partial 'shared/grid', 'title' => 'System' ,'cols' => 2 %>

& finally heres the _grid partial

<% for r in @result %> "> <% for s in r.split(' ', cols) %> <% end %>
<% end %>
><%= title %>
<%= s %>