From: Tim Hunter Date: 2007-05-20T05:29:45+09:00 Subject: Re: run a command on shell with ruby Corpus Callosum wrote: > hi guys, > > i want to run a command with a ruby programme. for example, assume that > i have a ruby script and when run its, it make "apt-get install gaim" > command run.. > > what is the method or way of that ? > thanks > > Use the Kernel#system method, or surround the command with backticks. system("apt-get install gaim") `apt-get install gaim` -- RMagick [http://rmagick.rubyforge.org] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]