Tim Hunter <TimHunter / nc.rr.com> wrote:

> veggie5 wrote:
> > How can I run this command from my ruby script?
> > 
> > /usr/bin/java -jar #{jsmin_path}/custom_rhino.jar -c
> > #{tmp_path}_uncompressed.js
> > 
> > 
> 
> ri Kernel#system

---------------------------------------------------------- Kernel#system
     system(cmd [, arg, ...])    => true or false
------------------------------------------------------------------------
     Executes _cmd_ in a subshell, returning +true+ if the command was
     found and ran successfully, +false+ otherwise. An error status is
     available in +$?+. The arguments are processed in the same way as
     for +Kernel::exec+.

        system("echo *")
        system("echo", "*")

     _produces:_

        config.h main.rb
        *

(END) 
-- 
Une Bue