From: Kevin Skrenes Date: 2007-03-17T06:25:34+09:00 Subject: Re: Executing shell commands from Ruby... again. Jan Friedrich wrote: > How about this: > > # -- BEGIN OF EXAMPLE > > # setting command, param, input, output > # ... > cmd = < echo off > cd path\executabledir > #{command} -S #{param} #{input} #{output} > END_OF_STRING > > system(cmd) > > # -- END OF EXAMPLE That makes perfect sense, but for some reason I'm getting this error: : can't find string "END_OF_STRING" anywhere before EOF : syntax error, unexpected $end, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END I'm still working on it, but this solution seems to be ideal as long as I can get it to function properly. Alex, you're exactly right, I certainly have no problems using variables to construct a String. :) I was merely saying that the batch file solution was insufficient because I can't create its content dynamically. Thanks for your reply, I'll check out the file you provided. -- Posted via http://www.ruby-forum.com/.