开发者

awk script as a webservice

I made a awk script to do stuff on some input files but as I want to avoid install开发者_StackOverflow社区ing gawk on the windows machines I want this awk script to be available as a webservice or just a form where I can either upload a file or just copy the text of the file in a box and run the script on it and get back the result of the awk script.

How can I do this.


my suggestion, set up a web server, create a form using PHP (or your fav language). At the back end, you can either make a system call to gawk binary OR you can recode your gawk script using PHP(or your favorite language). Then all users will just need to go to the web page and submit their files for parsing. You only need to have one copy of gawk interpreter at your server.


Do you really want to make the system() function available to remote machines? I think not.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜