From: ahoward Date: 2002-12-14T04:11:57+09:00 Subject: Re: Can an .rbx file send it's own code? On Sat, 14 Dec 2002 nobu.nokada@softhome.net wrote: > Hi, > > At Sat, 14 Dec 2002 02:27:03 +0900, > Chris Pine wrote: > > I was wondering if there's a way to make a web page (generated in Ruby) with > > a link which, when clicked, would send itself... not the generated page, but > > the actual page-generating Ruby program, the whole .rbx file. > > > > I can't figure out any easy way to do this... any thoughts? http://eli.fsl.noaa.gov/cgi-bin/source.cgi install this in your cgi-bin dir. when called with http://your.host.com/cgi-bin/source.cgi?source=filename.cgi it will display the source named in the query string. the all cgi's simply need a link to this program with cgi.script_name as the source. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================