BASH   46

values txt

Guest on 2nd August 2022 08:10:34 AM

  1. #!/bin/sh
  2. # franklin update of /cgi/test-cgi.txt
  3. # echoes STDIN
  4.  
  5. echo Content-type: text/plain
  6. echo
  7.  
  8. echo "CGI/1.1 (cf. /cgi/) test script report:"
  9. echo "  franklin update of /cgi/test-cgi.txt"
  10. echo "  To see the plain text of this script, access"
  11. echo "    /indiv/franklin/doc/values.txt"
  12. echo
  13.  
  14. echo
  15. echo "---- Start listing variables known to be used by various servers ----"
  16. echo "---- Note: Only some of these variables are always set. ----"
  17. echo argc is $#. argv is "$*"
  18. echo
  19. echo AUTH_TYPE = "$AUTH_TYPE"
  20. echo CONTENT_LENGTH = "$CONTENT_LENGTH"
  21. echo CONTENT_TYPE = "$CONTENT_TYPE"
  22. echo DOCUMENT_ROOT = "$DOCUMENT_ROOT"
  23. echo GATEWAY_INTERFACE = "$GATEWAY_INTERFACE"
  24. echo HTTP_ACCEPT = "$HTTP_ACCEPT"
  25. echo HTTP_CONNECTION = "$HTTP_CONNECTION"
  26. echo HTTP_HOST = "$HTTP_HOST"
  27. echo HTTP_PRAGMA = "$HTTP_PRAGMA"
  28. echo HTTP_REFERER = "$HTTP_REFERER"
  29. echo HTTP_USER_AGENT = "$HTTP_USER_AGENT"
  30. echo PATH = "$PATH"
  31. echo PATH_INFO = "$PATH_INFO"
  32. echo PATH_TRANSLATED = "$PATH_TRANSLATED"
  33. echo QUERY_STRING = "$QUERY_STRING"
  34. echo REMOTE_ADDR = "$REMOTE_ADDR"
  35. echo REMOTE_HOST = "$REMOTE_HOST"
  36. echo REMOTE_IDENT = "$REMOTE_IDENT"
  37. echo REMOTE_USER = "$REMOTE_USER"
  38. echo REQUEST_METHOD = "$REQUEST_METHOD"
  39. echo SCRIPT_FILENAME = "$SCRIPT_FILENAME"
  40. echo SCRIPT_NAME = "$SCRIPT_NAME"
  41. echo SERVER_ADMIN = "$SERVER_ADMIN"
  42. echo SERVER_NAME = "$SERVER_NAME"
  43. echo SERVER_PORT = "$SERVER_PORT"
  44. echo SERVER_PROTOCOL = "$SERVER_PROTOCOL"
  45. echo SERVER_SOFTWARE = "$SERVER_SOFTWARE"
  46. echo "---- End listing variables known to be used by various servers ----"
  47. echo
  48.  
  49. echo
  50. echo "---- Start of STDIN ----"
  51. while read x
  52. do
  53.   echo $x
  54. done
  55. echo "---- End of STDIN ----"
  56. echo
  57.  
  58. echo
  59. echo "--- Start of full output from 'set' ---"
  60. set
  61. echo "---- End of full output from 'set' ----"

Raw Paste


Login or Register to edit or fork this paste. It's free.