Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1281247
  • 博文数量: 168
  • 博客积分: 3483
  • 博客等级: 中校
  • 技术积分: 1696
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 13:17
文章分类

全部博文(168)

文章存档

2015年(6)

2014年(9)

2013年(47)

2012年(11)

2011年(13)

2010年(18)

2009年(11)

2008年(42)

2007年(11)

分类: LINUX

2014-11-14 23:11:05

haserl是一款允许在html文件中嵌入 shell脚本、并运行脚本的CGI包装软件,就好像html嵌入php一样。而该软件的作者认为有时候处理一些简单的CGI任务,php显得过于庞大, 因此产生了用shell来取代php的灵感。该软件在Linux下编写,同样适合于Unix操作系统。


Haserl

Haserl is a small program that uses shell or Lua script to create cgi web scripts. It is intended for environments where PHP or ruby are too big.

It was written for Linux, but is known to run on FreeBSD. A typical use is to run cgi scripts in an embedded environment, using a small web server, such as mini-httpd, lighty, or the server built into busybox.

License

Freely available under the terms of the GNU Public License (GPL2).

Features

  • Small: The haserl binary typically compiles to less than 20KB (stripped). The lua language adds less than 150K if linked in statically.

  • Parses like other scripting languages: Anything that is not enclosed in <% ... %> tags is sent verbatim to the client.

  • Automatic FORM parsing: Form elements sent from the client are automatically parsed and placed into environment variables. The script can then reference the variables without any extra work. For lua scripts, the elements are placed in a global FORM[] table.

  • multipart/form-data decoding: Mime data sent via the enctype="multipart/form-data" method is transparently decoded. This method is used when uploading files from the client.

  • Privilege Escalation: On Linux, if haserl is installed suid root, then it will attempt to drop its privilege to the uid/gid of the owner of the cgi script. This is similar to suexec in Apache.


/manpage.html

X-Wrt(webif^2) is based on haserl. 


阅读(8499) | 评论(0) | 转发(0) |
1

上一篇:enable_coredump

下一篇:mark Tcl/Tk resource

给主人留下些什么吧!~~