From: Yuguri Azuma Date: 2009-04-05T12:09:27+09:00 Subject: Re: retrieve ruby script file name Thanks, Hugh. Hugh Evans wrote: > Yuguri Azuma wrote: >> Hello Group, >> >> Is there any way to retrieve the file name of the script that you are >> executing? >> For example if you have a ruby script named kitty.rb : >> >> $./kitty.rb >> script name is 'kitty.rb' >> >> Thank you, > > puts File.basename(__FILE__) -- Posted via http://www.ruby-forum.com/.