str = IO.popen("ls /bin", "r+").read puts str