From: Damjan Rems Date: 2010-04-09T20:33:43+09:00 Subject: How to capture output of linux command You can run linux command: a = `ls /home` and receive output in variable a. But I would like /home to be variable. So I would invoke command like this: a = `"ls #{dir}"` This of course doesn't work, but I hope you get the point. a = system("ls #{dir}") works, but returns only true or false not the standard output of command. How can I get standard output of the command and use variable as parameter? by TheR -- Posted via http://www.ruby-forum.com/.