SSI Exec命令输出 [英] SSI Exec command output

查看:105
本文介绍了SSI Exec命令输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在win-2003服务器上安装了Apache-Tomcat 6.0.35,经过大量的努力,我基本上可以正常运行!然后启用SSI,可以看到命令
喜欢

<!-#echo var ="date_local"->

<!-#exec cmd ="net start MSSQL \ $ TRANS"->

等工作.净启动命令使我充满信心.
我也可以启动网络服务.

然后当我尝试时:

<!-#exec cmd ="dir/b"->

我什么都没打印出来!在Linuxmint中使用cmd ="ls"的类似命令似乎可行!

此外,我仅使用dir命令设置了myshell.bat文件,然后尝试:

<!-#exec cgi ="cig-bin \\ myshell.bat"->

这将使我在执行指令时出错.我已经设置了cig-bin和
外壳文件myshell.bat可以由Internet用户执行.

有人可以帮忙吗?

I hvae installed an Apache-Tomcat 6.0.35 on a win-2003 server and with quite a lot of effort, I got it working, mostly! Then I enable the SSI and can see the command
like

<!--#echo var="date_local" -->

<!--#exec cmd="net start MSSQL\$TRANS" -->

etc. working. The net start command gave me confidence that something is working.
And I can start the net service as well.

Then when I try:

<!--#exec cmd="dir /b" -->

I got nothing print out! Similar command in Linuxmint with cmd="ls" seem work!

Furthermore, I set file myshell.bat with just a dir command and then try:

<!--#exec cgi="cig-bin\\myshell.bat" -->

and it would me error in executing the directive. I have setup the cig-bin and the
shell file myshell.bat to be executable by Internet user.

Can anyone help?

推荐答案

TRANS->

等工作.净启动命令使我充满信心.
我也可以启动网络服务.

然后当我尝试时:

<!-#exec cmd ="dir/b"->

我什么都没打印出来!在Linuxmint中使用cmd ="ls"的类似命令似乎可行!

此外,我仅使用dir命令设置了myshell.bat文件,然后尝试:

<!-#exec cgi ="cig-bin \\ myshell.bat"->

这将导致我在执行指令时出错.我已经设置了cig-bin和
外壳文件myshell.bat可以由Internet用户执行.

谁能帮忙?
TRANS" -->

etc. working. The net start command gave me confidence that something is working.
And I can start the net service as well.

Then when I try:

<!--#exec cmd="dir /b" -->

I got nothing print out! Similar command in Linuxmint with cmd="ls" seem work!

Furthermore, I set file myshell.bat with just a dir command and then try:

<!--#exec cgi="cig-bin\\myshell.bat" -->

and it would me error in executing the directive. I have setup the cig-bin and the
shell file myshell.bat to be executable by Internet user.

Can anyone help?


这篇关于SSI Exec命令输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆