From: Tobias Reif Date: 2002-05-24T22:37:54+09:00 Subject: Re: OS independent scripts, system calls on Windows and Linux nobu.nokada@softhome.net wrote: >>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 >> > > I'm not sure what you mean by Stderr and Stdout. Something > other than streams? returned = cmd.issue returned would hold an object of class Stderr (or equiv) if there's an error output from the command, an object of class Stdout (or equiv) if there's anything from the command's stdout, or it would hold nil if there's none of those. The pseudo code was merely for demonstration, so I chose a way I found descriptive. Tobi -- http://www.pinkjuice.com/