From: Albert Schlef Date: 2008-05-08T00:56:19+09:00 Subject: Re: Getting pipe return codes from SYSTEM command > > system("ls | bzip2 -c > ./out.txt") > > how can I still get the return code of ls? > If you're using bash then it has an shell variable that records the exit status of all commands in a pipeline (it's an array). Do 'man bash'. -- Posted via http://www.ruby-forum.com/.