The Unix version of the FORM ACTION command will most likely reference a Unix shell script, using syntax similar to this:
<FORM ACTION="/cgi-bin/cgitst" METHOD="POST">
This causes the command /cgi-bin/cgitst to be executed, using the "POST" method of parameter passing, when the "SUBMIT" or "SEND FORM" button is pressed. We could have given an A-Shell command line but have chosen to use an intermediate script called cgitst as it will provide us a lot of additional flexibility. Our cgitst script (for Unix) is as follows:
#!/bin/ksh
exec /vm/miame/bin/ashell -i /vm/miame/miame.ini –cgi –e cgicmd \ 2>/tmp/cgi.err
The above shell script starts by specifying that it is to run under the Korn shell. Actually, it makes little or difference which shell it runs under, since we aren’t doing anything fancy, but it is still a good idea to standardize on a particular shell, in case you want to take advantage of certain capabilities or environment settings specific to a particular shell. (If running under Unix, and didn’t have the Korn shell installed, you might want to specify the /bin/bash shell instead.)