スクリプト内でOSのコマンドを実行するきれいな方法を教えてください
ttp://www.ruby-lang.org/ja/man/?cmd=view;name=shell#a.a5.b3.a5.de.a5.f3.a5.c9.bc.c2.b9.d4
↑を参考に、

require 'shell'
sh = Shell.new
sh.system("ls")

と、やってみましたが、irbでは問題なく実行できたものの、ファイルに保存して
実行すると、
shell: warn: Process finishing...
   wait for Job[/usr/bin/ls:#28045] to finish pipe importing.
   You can use Shell#transact or Shell#check_point for more safe execution.
shell: notice: Process finishing...
   wait for Job[/usr/bin/ls:#28045] to finish.
   You can use Shell#transact or Shell#check_point for more safe execution.
と言われました。
マニュアルのtransactの項目を見ましたが理解できませんでした。

ruby 1.8.6