Is it possible to auto-discover parameters to shell/Perl scripts in order to "meta" program WEB UIs for them?
I have a bunch of "legacy" scripts that I'd like to "web wrap". So far I have created a CGI-BIN web app with about 3 parameters that can call a bash/Perl reporting script.
But it now occurs to me maybe there is quicker or automatic way to wrap these 100s of scripts.
So basically I'd like to find out about techniques for metaprogramming where I'd discover what input parameters a particular bash or Perl script takes and then generate corresponding HTML FORM elements with those input parameters as TEXT INPUT or SELECT dropt down boxes etc.
Any ideas or links to examples?