From: Russell Quinn Date: 2008-05-08T00:33:41+09:00 Subject: Getting pipe return codes from SYSTEM command I'm trying to find the return codes from bash for piped commands. i.e. system("ls") puts("#{$?.exitstatus}") This returns the return code of ls system("ls | bzip2 -c > ./out.txt") how can I still get the return code of ls? Thanks, Russell. -- Posted via http://www.ruby-forum.com/.