Rev CGI on he.net (was Re: [ANN] searchable use-revolution list archives)
Alex Rice
alrice at ARCplanning.com
Thu Aug 7 15:39:00 EDT 2003
On Wednesday, August 6, 2003, at 01:40 PM, Ken Ray wrote:
> Sure! That would be great... having a really fast ISP that supports Rev
> is a great thing...
I can confirm you can run Rev headless version on a he.net account.
Just a hello world test.
(connected to server via ssh)
# cd bin
# curl -O ftp://ftp.metacard.com/MetaCard/linux.tar
# tar xvf linux.tar
# gunzip mc.gz
# emacs ~/cgi-bin/test.rev
# cat ~/cgi-bin/test.rev
#!/home/alexr/bin/mc
# This MetaTalk script loops over all the environment variables
# set by the server when it runs a CGI application printing out
# its name and value. (by Monte Goulding)
on startup
# loop over all of the global variables, getting name and value
repeat for each item i in the globals
put i && "=" && value(i)& return after buffer
end repeat
# write minimal set of HTTP headers to stdout
read from stdin until empty
put it after buffer
replace cr with "<P>" in buffer
put "Content-Type: text/html" & cr
put "Content-Length:" && the length of buffer & cr & cr
put buffer
end startup
# chmod +x ~/cgi-bin/test.rev
Alex Rice, Software Developer
Architectural Research Consultants, Inc.
http://ARCplanning.com
More information about the use-livecode
mailing list