首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
推荐学习书目
›
Learn Python the Hard Way
Python Sites
›
PyPI
- Python Package Index
›
http://diveintopython.org/toc/index.html
›
Pocoo
值得关注的项目
›
PyPy
›
Celery
›
Jinja2
›
Read the Docs
›
gevent
›
pyenv
›
virtualenv
›
Stackless Python
›
Beautiful Soup
›
结巴中文分词
›
Green Unicorn
›
Sentry
›
Shovel
›
Pyflakes
›
pytest
Python 编程
›
pep8 Checker
Styles
›
PEP 8
›
Google Python Style Guide
›
Code Style from The Hitchhiker's Guide
V2EX
›
Python
bash竟然也能作为CGI脚本的解释器~好有趣
sodapanda
·
sodapanda
·
2012-04-13 21:01:56 +08:00
· 4410 次点击
这是一个创建于 4575 天前的主题,其中的信息可能已经有所发展或是发生改变。
今天看python的CGI那部分,突然想起来bash也是解释器阿,那Perl 和python能当CGI脚本解释器,那bash也行阿。试了试,果不其然~~赤裸裸的在浏览器里显示出 ifconfig 和 ps -e了。
直接捣鼓CGI比捣鼓框架有趣阿,我只是说有趣而已。实用性就不谈了 ^_^
CGI
bash
解释器
3 条回复
•
1970-01-01 08:00:00 +08:00
1
gwmwhu
2012-04-13 22:20:49 +08:00
有标准输入和标准输出的语言都可以写cgi啊
2
ruchee
2012-04-14 00:48:22 +08:00
LZ奇葩了,CGI是不限语言的
3
594duck
2012-12-10 12:53:26 +08:00
麻烦楼主。你的bash cgi是在什么中间件下执行的。apache ? nginx?
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2782 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 00:29
·
PVG 08:29
·
LAX 17:29
·
JFK 20:29
Developed with
CodeLauncher
♥ Do have faith in what you're doing.