From: Logan Capaldo Date: 2006-05-27T06:42:01+09:00 Subject: Re: Executing a shell command from within a ruby script? On May 26, 2006, at 5:32 PM, Paatsch, Bernd wrote: > Hello, > > I am fairly new to ruby and I like to have a script that can > Executing a > shell command from within a ruby script like "gem list --local" > How would I do that? > Check out the system method, and back ticks (x = `gem list --local`). If you need somethin more complicated, look into IO.popen. > Thanks, > Bernd