开发者

How to parse POST data in a CGI script with BASH scripting? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

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 n开发者_运维技巧eed 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜