MetaCard CGI - a good place to start with

Mark Schonewille europe at ehug.info
Sun May 7 10:42:17 CDT 2006


Thanks, LiangTyan Fui, it works now. Indeed, it appears that one 
must use the standard linux 2.0 engines instead of the cgi engine.

Btw for FTP I use my own FPT client ecxFTP, made with 
Revolution. A beta preview is availabe at 
<http://economy-x-talk.com/ecxftp.html>.

Best regards,

Mark

LiangTyan Fui wrote:

> 
> Memebot is running on Linux server.
> http://toolbar.netcraft.com/site_report?url=http://www.memebot.com
> 
> Fedora Core to be precise.
> 
> The engine that I used was this one:
> ftp://ftp.runrev.com/pub/revolution/downloads/engines/2.0/Linux.zip
> 
> The one in the cgi folder are having some problem.
> The more recent engine needs fancy graphic libraries, which will  likely 
> failed on standard Fedora Core server installation (without GUI).
> 
> Unzip the file, and you'll get a "mc" binary file.
> 
> Upload the binary file into your memebot cgi-bin folder, you have to  do 
> that with FTP client.
> Set the permission to 755 with your FTP client.
> 
> Copy the following script and save it as "echo.cgi" (the name must  ends 
> with .cgi -- this is required by memebot server).
> 
> Make sure the echo.cgi file start with "#!mc" as the first line.
> 
> -----------------------------------------------
> #!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.
> 
> 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) & cr after buffer
>   end repeat
> 
>   put "Content-Type: text/plain"& cr
>   put "Content-Length: "& length(buffer) & crlf & crlf
> 
>   write buffer to stdout
> 
>   quit
> end startup
> -----------------------------------------------
> 
> Upload the "echo.cgi" file to your memebot cgi-bin directory, place  it 
> together with the "mc" binary. Again, make sure it has 755  permission.
> 
> Fire-up your browser, and type the following to access your echo script:
> http://yourweb.memebot.com/cgi-bin/echo.cgi
> 
> Where yourweb is the name that you have created for memebot web  directory.
> 
> Good luck!
> 
> 

-- 

Consultant and Software Engineer
mailto:m.schonewille at economy-x-talk.com
http://www.economy-x-talk.com

eHUG coordinator
mailto:europe at ehug.info
http://www.ehug.info

Advertise with us and reach 1000 truely interested internet 
users every month. See http://economy-x-talk.com/advertise.html 
for more information.



More information about the metacard mailing list