S
spud
Hi,
I have a script that runs as a unix shell script that takes an XML
file then parses it performing the tasks that are in the file. in the
event that I need to ask a question or gain user input the question is
held in the xml file allowing me to ask the question and store the
result of <STDIN>...
However I have now been asked to convert this to run as a web page so
that others that are not trust worthy of unix access may use it
I have never written a CGI script before so the first thing I tried
was to replace my code that asked questions with a auto generated form
html form... The trouble is that when I do this my script simply
rattles through and creates the form then continues on trying to
execute the commands in the rest of the file without waiting for me to
post the form back with the information in it
How would I go about creating a script that asks some questions then
performs commands from them?
Thanks in advance
Peter
I have a script that runs as a unix shell script that takes an XML
file then parses it performing the tasks that are in the file. in the
event that I need to ask a question or gain user input the question is
held in the xml file allowing me to ask the question and store the
result of <STDIN>...
However I have now been asked to convert this to run as a web page so
that others that are not trust worthy of unix access may use it
I have never written a CGI script before so the first thing I tried
was to replace my code that asked questions with a auto generated form
html form... The trouble is that when I do this my script simply
rattles through and creates the form then continues on trying to
execute the commands in the rest of the file without waiting for me to
post the form back with the information in it
How would I go about creating a script that asks some questions then
performs commands from them?
Thanks in advance
Peter