2

I Have a cgi script written with bash and i have to read a POST variable sent to this file. I am not good at bash scripting so i really need this help.

From a php script I send a POST variable named log_message to this cgi but i don't know how to parse the POST var from the header.

Any help?

fat
  • 5,098
  • 4
  • 28
  • 31

1 Answers1

1

those seds should all have a g, as in:

sed 's/whatever/whatever/**g**'

otherwise it stops after the first replace, which is not generally the desired behaviour.

cdeszaq
  • 30,869
  • 25
  • 117
  • 173
riot
  • 11
  • 1