While running tests with compiled CGI executables, I couldn't get text in the browser screen in a reliable
way. So I had to revert to:
and the result is what you see below (and can rertrieve from the download section). This program is plain
simple, but it is also very important. It shows that if you need to output n lines to the screen, you need to
send n+2 lines!
- written documentation
- a 'Hello world' style program
FROM InOut IMPORT WriteString, WriteLn;
WriteString ("Hi there, this is my text.");
If you want to see what it does, just
run this file
But the chances of success are minimal since many webhosts have deactivated their CGI functionality due to safety
considerations (due to stupid coders writing in perl and python). Therefore the best option is to install the
access program to your local cgi-bin and then
run it local
Download the access files
Download the full access source plus precomiled 32 bit ELF
Just enter in your URL bar the following URL:
I did some tests with the invoking mechanism. This is a very picky mechanism. It needs to know several things.
This example is based on a CGI executable that resides on a remote webserver.
Combine this all and you get the full URL for the CGI program: https://hydrogen/cgi-bin/access. This is the
address you can use within your LAN as long as hydrogen is running and the alias is known in '/etc/hosts'.
- The protocol. In this case 'http://'
- The server on which the executable is. In this case 'localhost'
- The CGI path: '/cgi-bin/'
- The name of the executable: 'access'
Another method would be to use https://127.0.0.1/cgi-bin/access as the fully qualified URL. '127.0.0.1' is
short for 'This machine'. Or, shorter still: '/cgi-bin/access' would to the trick as well...
Page created at September 4, 2004.