From: Bertram Scharpf Date: 2009-09-08T00:31:58+09:00 Subject: Re: Executing system commands in threads under Ruby 1.8.6 Hi, Am Montag, 07. Sep 2009, 21:04:53 +0900 schrieb geo ssscripting: > The commands executed in the script at the SO link was simply pinging > the host on an ip range from 1 to 254 like in the following line : > > `ping #{ip_addr}` > > This happened from inside each individual thread. How could I replace > the backticks so that they won't block ? You could fork-exec-wait as described in . To retrieve the exit status call waitpid2 as described below waitpid. Just fill an array with pids and you don't even need threading. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de