form data as $1, shell script & cgi
I have a form page custlookup.html:
Should execute as follows on the server:
% ./scopelookup.sh $devid
I tried appending the method with the $devid but that doesn't seem to work:
Try modifying the script to use FORM_devid rather
than passing variables to the script. (Assuming you're
P.S.: Moved to PROGRAMMING.
Thanks for the reply Tinkster. I wasn't aware of proccgi until you mentioned it. I just googled it and it appears to be a variable translator from web form to shell scripts which appears to be exactly what i need. But as I mentioned my scripting skills are joke worthy so I have some basic questions for you:
1 - how do I determine if proccgi is installed on the server?
2 - how can I troubleshoot my issues since monitoring the error.log in apache doesn't seem to provide any errors. I'd like to see what variable if any the script is taking so that I may attempt to correct it.
With the current config i get the following one liner result on my web page:
I think simply using HTTP GET rather than POST will cause the web server to pass arguments via the CGI commandline, rather than STDIN. Your CGI will get arguments from all form elements, and they will be of the form "?key1=value1&key2=value2&...." You should be able to parse out the key/value pairs in your script, especially since your list of form elements appears to be small.
|All times are GMT -5. The time now is 03:26 AM.|