cf执行超时
我正在运行 CF9 开发版 - 使用内置网络服务器,在 win XP sp3 上 我似乎无法从 CF 运行命令行...
错误如下所示: 超时期限已过期,但未完成 C:\Program Files\Vis\vis.exe
如果我从 CMD 运行此命令 - 它工作正常... C:\Program Files\Vis\vis.exe "C:\Documents and Settings\me.POV-ISP\My Documents\actX.vjb"
尝试使用此代码从 CF 运行它 - (或许多其他变体)并且它超时。
<cfexecute name = "C:\Program Files\Vis\vis.exe"
arguments = "C:\Documents and Settings\me.POV-ISP\My Documents\actX.vjb"
variable="result" timeout="600" errorVariable="errorv"/>
我通过阅读其他线程了解到它可能是权限,但是权限应该是什么?我像我一样安装了 CF - 它通过我的帐户在本地运行,与我运行 CMD 相同。
想法。???
I'm running CF9 dev edition - using the built in webserver, on win XP sp3
I don't seem to be able to get a command line to run from CF...
Error looks like this:
Timeout period expired without completion of C:\Program Files\Vis\vis.exe
If I run this from the CMD - it works fine...
C:\Program Files\Vis\vis.exe "C:\Documents and Settings\me.POV-ISP\My Documents\actX.vjb"
trying to run it from CF using this code - (or many other variations) and it times out.
<cfexecute name = "C:\Program Files\Vis\vis.exe"
arguments = "C:\Documents and Settings\me.POV-ISP\My Documents\actX.vjb"
variable="result" timeout="600" errorVariable="errorv"/>
I understand from reading other threads that it MAY be permissions, but WHAT should the permissions be? I installed CF as me - it's run locally, thru my account, same as me running CMD.
thoughts.???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我要尝试的第一件事是从 C:\documents and settings 更改您的路径...(这实际上是 Windows 7 中的快捷方式文件/指针,而不是真正的路径)并使用 c:\users\m.pov- isp\Documents\actX.vjb)。以防 ColdFusion 无法解析系统环境中的指针。
如果失败的话,要么是语法问题,要么是权限问题,对吗?
为了排除语法,我会运行这个,针对Windows 7稍微修改一下,
如果输出文件出现,您就知道这是语法。如果没有,我们可以攻击该服务...
打开您的服务面板(右键单击我的电脑 -> 管理 -> 服务和应用程序 -> 服务)。
选择ColdFusion 9应用服务器->属性
将登录帐户更改为您自己的。这将使 ColdFusion 能够访问您的文档以及您作为用户可以访问的所有其他资源。您可能还想尝试输出到 C 驱动器上的文件夹,该文件夹不太可能出现权限冲突问题。
祝你好运。
-戴夫
The first thing I would try is change your path from C:\documents and settings ...(This is actually a short cut file/pointer in Windows 7 and not a true path) and use c:\users\m.pov-isp\Documents\actX.vjb). Just in case ColdFusion can't resolve the pointer in the system environment.
Failing that, it's either Syntax or permissions right?
To rule out syntax, I'd run this, slightly modified for windows 7, stock example from live docs:
If the output file shows up, you know it's the syntax. If it doesn't we can attack the service...
Open up your services panel (right click my computer -> manage -> services and applications -> services).
Select the ColdFusion 9 Application server -> properties
Change the Logon account to your own. This should give ColdFusion access to your Documents and all of the other resources you can reach as a user. You also may want to try outputting to a folder on the C drive that will be less likely to have conflicting permission issues.
Best of luck.
-Dave
您还可以尝试使用以下命令覆盖您正在创建的单个文件中的任何设置
,其中,10000 是 10000 秒。您可能想要坚持 600 秒(10 分钟),然后从那里向上移动。我会把它放在 cfexecute 之前。您可以先尝试单独使用它,或者与 cfexecute timeout 结合使用。
让我们知道进展如何!
You can also try overridding any setting in the individual file you're making with the following command
Where, 10000 is 10000 seconds. You might want to stick to 600 seconds (10 minutes) and move up from there. I would put it before the cfexecute. You can try using it alone first, or in conjunction with the cfexecute timeout.
Let us know how it goes!
如果上述方法均不起作用,请获取 SysInternals Process Monitor 并运行它运行请求时。进程监视器生成数千个事件(过滤它们是非常必要的),包括所有文件和注册表访问尝试及其成功。
您很可能会在它的日志记录中找到线索。
If none of the approaches above works, get hold of SysInternals Process Monitor and run it whilst running the request. Process Monitor generates thousands of events (filtering them down is very necessary), including all file and registry access attempts and their success.
You may well find a clue in the logging it does.