我们在尝试使用MSDeploy的“runCommand”提供程序在远程计算机上执行.cmd文件时遇到了错误。预期运行时间应该约为10秒,但MSDeploy只运行了约2-3秒,之后返回错误详细信息。
这是我正在使用的完整的MSDeploy“runCommand”命令行文本:
以下是返回的错误详细信息:
任何想法为什么会发生这种情况,如何解决?
这是我正在使用的完整的MSDeploy“runCommand”命令行文本:
msdeploy.exe -verb:sync -source:runCommand="D:\web deploy tester\test_cmd.cmd",dontUseCommandExe=false,waitAttempts=5,waitInterval=1000 -dest:auto,computername=http://test-machine:89/MsDeployAgentService/,userName=aaa,password=bbb
以下是返回的错误详细信息:
Error 'Error: (4/21/2010 12:19:25 PM) An error occurred when the request was processed on the remote computer.
Error: The process 'C:\WINDOWS\system32\cmd.exe' (command line '/c "D:\web deploy tester\test_cmd.cmd"') was terminated because it exceeded the wait time.
Error count: 1.
' occurred in call to RunCommand
任何想法为什么会发生这种情况,如何解决?
"
时,我犯了一个错误,即将waitInterval
包含在命令路径的引号内而不是外部:..",waitInterval..
- The Muffin Man