From: Daniel N Date: 2008-08-23T14:46:43+09:00 Subject: Re: How do I make an autonomous program? ------=_Part_41456_5752943.1219470640401 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Aug 23, 2008 at 3:26 PM, Martin DeMello wrote: > On Fri, Aug 22, 2008 at 10:21 PM, Todd Jacobus > wrote: > > Well that sounds like what I'm looking for. All I want to do is to be > > able to transfer the script onto another computer (which doesn't have > > Ruby installed) and run the script. From what I've seen by playing with > > it on my computer, it doesn't seem to be as simple as just copying the > > ".rb" file. But thanks a lot for the comment, I'll have to check out > > that book you mentioned. > > http://www.erikveen.dds.nl/rubyscript2exe/ > > Bundles the ruby interpreter and your script together into a > self-contained executable > > martin If it's just for a script on a *nix / mac machine then you can put this in on the first line of the file. #!/usr/bin/env ruby then chmod it so that it's executable and put it into a directory that's picked up in the PATH env variable. Then it'll be avaialble just like any other command on your system. Is this what you meant? HTH Daniel ------=_Part_41456_5752943.1219470640401--