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..
ok i got it. and i am giving an example for who want to know
#! /usr/bin/ruby
exec "apt-get install gaim";
this script run that command on shell
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..
I'd recommend using pidgin -- it's the newest release of gaim.
TwP
···
On 5/19/07, Corpus Callosum <pythagorasthales@yahoo.com> 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..
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.
On 5/19/07, Corpus Callosum <pythagorasthales@yahoo.com> 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..
Corpus Callosum <pythagorasthales@yahoo.com> 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..
for posterity, this does run through the shell, rather it replaces ruby with the argument to exec (another process) completely by-passes the shell. you need to use system or popen to utilize the shell.
regards.
-a
···
On May 19, 2007, at 2:23 PM, Corpus Callosum wrote:
ok i got it. and i am giving an example for who want to know
#! /usr/bin/ruby
exec "apt-get install gaim";
this script run that command on shell
--
we can deny everything, except that we have the possibility of being better. simply reflect on that.
h.h. the 14th dalai lama
Please do not thread-hijack. You should create a new message rather
than changing the subject line unless the new subject has something to
do with the original discussion.
···
On May 19, 5:21 pm, Gian Holland <gia...@gmail.com> wrote:
Hey guys are there any web search api's that are ruby friendly?
On May 19, 5:21 pm, Gian Holland <gia...@gmail.com> wrote:
Hey guys are there any web search api's that are ruby friendly?
Please do not thread-hijack. You should create a new message rather
than changing the subject line unless the new subject has something to
do with the original discussion.