From: Vijay Patel Date: 2006-08-10T00:20:33+09:00 Subject: Re: How many ways can I execute ruby program? Thanks a lot eveyone. This place is wonderful. Vijay Kev Jackson wrote: >> same window. Now my question is : Can I have my output in some kind of >> output file instead of command window? Can I have log file, which can >> show some other display kind of messages only? 3) Is there any other w > > Hi, > > On *nix platforms, redirecting output to another file is as simple as > ruby my.rb > output.txt, I believe the same syntax works for windows. > > To run the code without using ruby my.rb, you must include a shebang > line > eg > #!/path/to/ruby.exe > > at the start of your program file, again on a linux/osx/bsd platform > this would probably be > > #!/usr/bin/ruby > > Kev -- Posted via http://www.ruby-forum.com/.