2008-05-10 RubyでLinuxコマンド実行 Ruby ruby lsコマンドを実行して取得した値を出力 #!/usr/local/bin/ruby open( "| ls") do |shl| until shl.eof print "#{shl.gets}<BR>" end end