From: nobu.nokada@... Date: 2002-05-24T20:58:47+09:00 Subject: Re: OS independent scripts, system calls on Windows and Linux Hi, At Fri, 24 May 2002 20:38:59 +0900, Tobias Reif wrote: > I'm not that experienced yet, so I might miss some obvious > solutions, but AFAICS, the backtick system call > mechanism returns stdout/sterr, but is not OS independent. The backtick returns stdout only and is almostly system independent. > The system() method seems to be OS independent, but doesn't > return anything, IIRC. (again: I didn't yet test or read > enough; please correct my assumptions) Correct. It's OS independent to the same extent as the backtick. > Perhaps something like: > > commands = # ... > commands.each do |cmd| system(cmd) or raise(cmd) > end -- Nobu Nakada