Forum Discussion
Altera_Forum
Honored Contributor
15 years agoYep. This is exactly what haserl does.
You don't write a CGI in C code, but you design a web page in some standard HTML designer and either when designing or after designing you insert some haserl tags. To make the web page a haserl cgi-script you insert # ! /bin/haserl or something like this as the fist line, so that haserl is started, when the web server starts the file as a cgi "program". When the haserl script is executed, the tags are replaced by the result of bash (or some other command line interpreter), that haserl calls with the parameters given on the tag. If you really need special purpose C code in some places, you can write a command line tool in C and have it called by the command line interpreter that is called by haserl (that is called by the web server). -Michael