From: unbewusst.sein@... (=?ISO-8859-1?Q?Une_B=E9v?= =?ISO-8859-1?Q?ue?=) Date: 2007-09-26T11:00:04+09:00 Subject: Re: Running shell scripts Tim Hunter 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 B�vue