Kumar Ca wrote:
> Jano Svitok wrote:
>> On Tue, Apr 8, 2008 at 4:51 PM, Kumar Ca <kumar.anul / gmail.com> wrote:
>>> Hi,
>>>
>>>  How can we programmatically associate a file extension to my program
>>>  using Ruby.
>>>
>>>  Please send information regarding this.
>>>
>>>  Thanks in Advance,
>>>  kumar
>> 
>> if you are on windows, use ftype and assoc commands.
>> 
>> http://www.ss64.com/nt/ftype.html
> 
> Thanks a lot
> 
> please give procedure for linux

Linux does not use a "file extension" to associate a program with a 
file. Instead, scripts typically have a "shebang" line at the top. This 
is a comment to the script but, if it is present, the shell will use it 
to determine what program to execute.

http://en.wikipedia.org/wiki/Shebang_(Unix)
-- 
Posted via http://www.ruby-forum.com/.