testcgi.sh 293 B

123456789101112
  1. #!/bin/sh
  2. echo Setting environment variables:
  3. REQUEST_METHOD=GET
  4. QUERY_STRING="name=michael&address=home&city=heaven"
  5. HTTP_USER_AGENT="Shell script"
  6. HTTP_REFERER="The shell prompt"
  7. export REQUEST_METHOD QUERY_STRING HTTP_USER_AGENT HTTP_REFERER
  8. echo Running program..
  9. testcgi
  10. #end of script