From: Bill Guindon Date: 2006-06-14T02:16:01+09:00 Subject: Re: best way for ruby to query subversion On 6/13/06, Toby Catlin wrote: > Hello everybody, > > I am writing a script to list files that are in a subversion repository. > I am only spiking at the moment but am having trouble. > > Basically i want to execute the svn command "svn list > svn://ci.firstconsult.com/fc_codebase" and display what is returned. I > have looked at using system() but this simply returns true or false > upon execution. > > As you can tell i am pretty new to the ruby game but i am sure there is > a simple elegant way of doing this. > > thanks for any help To capture the output, use backquotes: results = `svn list > svn://ci.firstconsult.com/fc_codebase` Other options explained here: http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/191009?190859-192450 > toby > > -- > Posted via http://www.ruby-forum.com/. > > -- Bill Guindon (aka aGorilla) The best answer to most questions is "it depends".