How can I run this command from my ruby script?
/usr/bin/java -jar #{jsmin_path}/custom_rhino.jar -c
#{tmp_path}_uncompressed.js
How can I run this command from my ruby script?
/usr/bin/java -jar #{jsmin_path}/custom_rhino.jar -c
#{tmp_path}_uncompressed.js
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
--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/\]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618\]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html\]
---------------------------------------------------------- Kernel#system
system(cmd [, arg, ...]) => true or false
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
------------------------------------------------------------------------
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 Bévue
better (on mac os x) :
ri Kernel\#system
Une Bévue <unbewusst.sein@weltanschauung.com.invalid> wrote:
> ri Kernel#system
--
Une Bévue
thanks
On Sep 25, 6:59 pm, unbewusst.s...@weltanschauung.com.invalid (Une Bévue) wrote:
Une Bévue <unbewusst.s...@weltanschauung.com.invalid> wrote:
> > ri Kernel#systembetter (on mac os x) :
ri Kernel\#system
--
Une Bévue
The first version works fine on my OS X box:
Welcome to Darwin!
Firefly:~$ ri -T Kernel#system
---------------------------------------------------------- Kernel#system
system(cmd [, arg, ...]) => true or false
On Sep 25, 2007, at 9:00 PM, Une Bévue wrote:
Une Bévue <unbewusst.sein@weltanschauung.com.invalid> wrote:
ri Kernel#system
better (on mac os x) :
ri Kernel\#system
------------------------------------------------------------------------
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
*
James Edward Gray II
Une Bévue wrote:
Une Bévue <unbewusst.sein@weltanschauung.com.invalid> wrote:
> ri Kernel#system
better (on mac os x) :
ri Kernel\#system
--
Une Bévue
ri Kernel.system or enclosing the arguments to ri in '' should work on most
systems too
TerryP.
--
Email and shopping with the feelgood factor!
55% of income to good causes. http://www.ippimail.com
here is my output :
~%> ri Kernel#system
zsh: no matches found: Kernel#system
i'm using zsh as shell script, may u aren't using it, this could be the
reason, because it's zsh interpreting the command line and which found
something wrong, the reason for my escaping #....
otherwise i'm using :
~%> which ruby
/opt/local/bin/ruby
~%> /opt/local/bin/ruby --version
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]
~%>
over MacOS X 10.4.10 running in a PPC iMac.
and also :
~%> zsh --version
zsh 4.3.2 (powerpc-apple-darwin8.8.0)
James Edward Gray II <james@grayproductions.net> wrote:
The first version works fine on my OS X box:
--
Une Bévue