开发者

Process an HTML form with a bash script?

I want to make an HTML form to input variables into a bash script and then run it, which sounds like a simple concept but I haven't found any way to do it. [The bash script makes directories, adds lines to files... If that is important]

  • How would I do this?
  • Is there something I should read on this?

form action="script.sh" ?

  • Then how would I do this equivalent to PHP?

$_POST["INPUT"]

Thanks for read开发者_开发技巧ing and I am grateful for any comments :)


This is almost surely a bad idea. You shouldn't be using bash to write CGI (or any other non trivial) scripts. You should probably not be using CGI at all.

However, if you do want to go ahead with this, consider using http://bashlib.sourceforge.net/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜