From: Sean Chittenden Date: 2002-04-27T06:55:27+09:00 Subject: Re: strerror in Ruby? > I'm calling system to copy some files, which only return true or > false and sets $? to the errno number. So, unless there is a better > way, I need the mapping. Ahh... well, if that's the case: out = `cp file1 dir2/file1` if !out.empty? puts "Something bad happened..." end Copy or move? Same filesystem? Could you use File.link? How about: require 'ftools' File.copy 'orig', 'new' That should raise the appropriate exceptions along the way too... -sc -- Sean Chittenden