5

problem in using cgi_script to handle form data

view full story
linux-howto

http://www.unix.com – Hi, I have an HTML form through which I get some text as input. i need to run a shell script say script.sh inside a perl-cgi script named main_cgi.sh on the form input. I want to write the contents of the form in a file and then perform some command line operations like grep, cat on the text and thn output the result as HTML. I am not able to find out what's gone wrong with the script. I am not able to write the text in the file and also the script.sh is not working. The scripts are as following - Code: #!/bin/sh #  main_cgi.sh eval "`proccgi $*` echo "Content-t (HowTos)