From: Tobias Reif Date: 2002-05-24T21:51:48+09:00 Subject: Re: OS independent scripts, system calls on Windows and Linux Nikodemus Siivola wrote: > Check IO.popen (builtin), and open3.rb (standard library). They both do > what you want, with IO.popen providin stdin & stdout to a separate process, > and open3.rb providing stderr as well. Thanks! Two questions: 1. How would I write commands = Commands.new ['this -x -y','that -a -b'] commands.each do |cmd| returned = cmd.issue # or ".run", ".enter", ... case returned when Stderr then raise returned when Stdout then puts returned end end then? 2. Will it run unchanged on Win and Lin, etc? TIA, Tobi -- http://www.pinkjuice.com/