Chinaunix's Archiver
论坛
›
Web开发
› shell写cgi程序
xiaoleixl
发表于 2017-09-27 09:23
shell写cgi程序
用shell写了一个cgi的脚本,脚本内容就是一个简单的for循环一个ip列表,循环里用ssh登录每个ip地址,可是为什么在网页里不显示,在服务器里该脚本是可以执行的。
脚本如下:
#!/bin/bash
echo "Content-type:text/html"
echo ""
for ip in iplist
do
ssh $ip "free -m"
done
页:
[1]
查看完整版本:
shell写cgi程序