- #!/bin/sh
- echo "Content-type: text/html"
- echo ""
- echo "
"
- echo "
"
- echo "results from a get form"
- echo "REQUEST_METHOD : $REQUEST_METHOD"
- echo "QUERY STRING : $QUERY_STRING"
- echo "
"
- while read LINE
- do
- echo "$LINE"
- done < /home/ww/file/from_file
- echo ""
上述代码中,绿色代码就是轮训从from_file文件中按行读取数据。然后输出到网页页面上。
阅读(186) | 评论(0) | 转发(0) |