|
楼主 |
发表于 2011-11-7 08:54:27
|
显示全部楼层
不行,脚本是执行了,但是却没有将结果送到网页上,只是将结果输入到了日志里。
- # cat logs/error_log
- [Mon Nov 07 16:44:55 2011] [error] [client 172.16.3.119] File does not exist: /root/httpd-2.2.21-mods-shared/htdocs/favicon.ico
- [Mon Nov 07 16:45:17 2011] [error] [client 172.16.3.119] File does not exist: /root/httpd-2.2.21-mods-shared/htdocs/favicon.ico
- Content-Type:text/html
- <pre>
- My username is: daemon
- My id is: 2
- My shell setting are:
- BASH=/bin/bash
- BASHOPTS=cmdhist:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
- BASH_ALIASES=()
- BASH_ARGC=()
- BASH_ARGV=()
- BASH_CMDS=()
- BASH_LINENO=([0]="0")
- BASH_SOURCE=([0]="/root/httpd-2.2.21-mods-shared/fcgid/se.sh")
- BASH_VERSINFO=([0]="4" [1]="1" [2]="9" [3]="1" [4]="release" [5]="i686-pc-linux-gnu")
- BASH_VERSION='4.1.9(1)-release'
- DIRSTACK=()
- EUID=2
- GROUPS=()
- HOSTNAME=localhost
- HOSTTYPE=i686
- IFS=$' \t\n'
- LD_LIBRARY_PATH=/root/httpd-2.2.21-mods-shared/lib:
- MACHTYPE=i686-pc-linux-gnu
- OPTERR=1
- OPTIND=1
- OSTYPE=linux-gnu
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.4.5
- PPID=7339
- PS4='+ '
- PWD=/root/httpd-2.2.21-mods-shared/fcgid
- SHELL=/bin/false
- SHELLOPTS=braceexpand:hashall:interactive-comments
- SHLVL=1
- TERM=dumb
- UID=2
- _=/bin/bash
- Here is the file in /tmp:
- total 0
- -rw------- 1 daemon daemon 0 Nov 7 16:47 sh-thd-1320677763
- </pre>
- [Mon Nov 07 16:47:08 2011] [warn] [client 172.16.3.119] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
- [Mon Nov 07 16:47:08 2011] [error] [client 172.16.3.119] Premature end of script headers: se.sh
- [Mon Nov 07 16:47:08 2011] [error] [client 172.16.3.119] File does not exist: /root/httpd-2.2.21-mods-shared/htdocs/favicon.ico
复制代码 |
|