From: Shannon Fang Date: 2002-11-30T07:43:39+09:00 Subject: catch stderr Hi, I have some question about catching stderr output in ruby... Please read the following simple code. STDERR.reopen STDOUT result=`net use abc` print "res=", result while abc is not available on my LAN. I didn't succeed in catch the stderr output to my program. I searched the talk archive, found some discussion, but I still have doubts. I refered to post #47612 and #47578, and copied the first line of code above. It does not work. Moreover, in sample code from #47578, I found some key words I don't recognize, such as "ensure... end" and "redirect... end". I tried to search these in the html help of ruby (came with the windows install package), but can't find any info. I also need some suggestion on how to find info in the help file. Last time I tried to find reserved word "in", in the help file, also failed... :( Shannon