From: Harry Ohlsen Date: 2001-05-27T11:10:06+09:00 Subject: [ruby-talk:15784] Re: system bashar asad wrote: > hello > > how can I run a system command in ruby like the one in perl system(command,options) > > thankx > > -- > Bashar A. Asad You can use backticks, just like in perl. For example ... x = `ls /bin` print x will put the output from "ls" into x and then print out the list of files. I also tried x = system("ls /bin") print x and that generates the same thing, except with the output looking more like it does when I type "ls /bin" in an xterm. I'm not sure what the defined difference is between them. In any case, one of those methods should achieve what you want.