FSP Conceptual version (FSPC) is preview test tool for embedding *ONLY* /bin/sh script into web pages. It is 100% finished and stable, ready to wok, but is preview, because is made for *different* mission.
Please make sure you are understand:
(please go and see these pages for more information, go to http://core.nmmm.nu for information about CGI_Core)
FSPC was made for three different (or not so:) reasons:
HTSH is clever, interesting tool, but is not so useful, when you try to do something very complicated with it, such as:
<body> <`if [ "$name" = "nmmm" ]; then `> <H1>Hello My Master</H1> <`fi`> </body> |
or such as:
<body> <` x(){ read a .... } x << input_file `> </body> |
HTSH is *unstable* and *secureles* too.
This same library will be implement in next (rebuild) version of CGI_Core. It actually is not more than HTML parser library, but if you are interested, you are able to download FSPC and see it yourself.
Of course this "path" is very *known*, but anyway it is not *bad* if we walk on it again and again...
I tell that this program trace the path of every CGI program, and as I tell this path is well known:
THE_REAL_JOB is depending on what are you doing. For embedded scripting processors or similar, it is:
<!-- demo 1 --> <html> <body> <H1>The /etc/passwd contain</H1> <Hr> <Pre><%>cat /etc/passwd</%></Pre> <Hr> </body> </html> |
<!-- demo 2 --> <html> <body> <%>if [ "$ENV_name" = "nmmm" ]; then</%> <H1>Hello My Master!</H1> <%>else</%> <H1>Hello $ENV_name, nice to meet with you!</H1> <%>fi</%> </body> </html> |
The text between <%> and </%> tags are interpreted as /bin/sh commands, all other text is interpreted as HTML (and will be part of one big "echo" or "printf", OF COURSE IT WILL BE WITH *PREPROCESSED* \" \' AND \`)
The tags can be "elastic" :)) such as:
< % >, < / % > < % param=value bla bla bla > < / % param=value bla bla bla > |
Installation is same as every standard handler of web server. As you know this depends on your HTTPd. There are instructions for Apache HTTPd:
AddType text/fspc .fspc Action text/fspc /cgi-bin/fspc |
Get it from HERE (70 KB, *.tar.gz)
Some tips.