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
  • 4,528
  • 4
  • 25
  • 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,043
  • 25
  • 112
  • 172
riot
  • 11
  • 1