When invoking `cmd 2> log2 >> log1` within ruby..
is there any issues concerning the shell I should be aware of?
placement of parenthesis and stuff.

or will  2>  and >>  always work as long we are on unix?




prompt> ./a.rb
STDOUT:
stdout
STDERR:
stderr
DONE


prompt> cat a.rb
#!/usr/local/bin/ruby
`rm lout lerr`
`touch lout lerr`
`ruby test.rb 2> lerr >> lout`
puts "STDOUT:\n" + IO.read('lout')
puts "STDERR:\n" + IO.read('lerr')
puts "DONE"


prompt> cat test.rb
$stdout.puts 'stdout'
$stderr.puts 'stderr'



--
Simon Strandgaard