0

作为批处理作业的一部分,我通过 control-m 创建了 4 个命令行,这些命令行调用了一个用 VB6 编写的遗留控制台应用程序。控制台应用程序调用 ActiveEx 服务器,该服务器执行一组计算输出的分析作业。ActiveEx 服务器被编码为单例,但是当通过 control-m 调用时,我运行了 4 个实例。一旦作业完成并且命令行已自行关闭,ActiveEx 服务器不会关闭。

我创建了 4 个 .bat 文件,它们曾经在服务器上手动启动,模拟通过 control-m 进行的调用,ActiveEx 服务器按预期运行,即只有 1 个实例正在运行,一旦完成,它就会优雅地关闭。

我究竟做错了什么?

4

2 回答 2

0

也许您的工作不能使用桌面环境。

检查您的代理服务设置: 登录为:

Control‑M 代理服务将在其下运行的用户帐户。

有效值:

Local System Account – Service logs on as the system account.
Allow Service to Interact with Desktop – This option is valid only if the service is running as a local system account. 

已选择 – 服务在桌面上提供用户界面,服务启动时登录的任何人都可以使用该用户界面。默认。

未选中 – 服务不提供用户界面。

This Account – User account under which Control‑M Agent service will run.

NOTE: If the owner of any Control-M/Server jobs has a "roaming profile" or if job output (OUTPUT) will be copied to or from other computers, the Log in mode must be set to This Account.

默认值:本地系统帐户

于 2018-02-05T16:50:30.120 回答
0

Control-M 作业在服务帐户下运行,与我们以用户身份登录并执行作业相同。你是怎么测试这个的?您是一个接一个地手动执行每个批处理作业,还是从不同的终端同时执行了所有批处理作业?你可以做一件事。以时间间隔运行 control-M 作业,例如第一个在 09.00 第二个在 09.05,第三个在 09.10,第四个在 09.15,看看是否能解决您的问题。

于 2017-11-08T16:57:04.327 回答