简体   繁体   English

Windows Task Scheduler无法正常工作

[英]Windows Task Scheduler not working

I have a script that login on SAP extract some reports. 我有一个登录SAP的脚本提取了一些报告。 The script must be run at 3 am every work day, So I set it to run regularly with the Windows Task Scheduler. 该脚本必须在每个工作日凌晨3点运行,因此我将其设置为与Windows Task Scheduler一起定期运行。

When I was testing it, I've logged in on Windows some time before I've scheduled and the AHK script was "running", but nothing was happening! 在进行测试时,我已经在计划之前的某个时间登录了Windows,并且AHK脚本正在“运行”,但没有任何反应!

Does anyone know why this might be happening? 有谁知道为什么会这样?

To clarify: your script must 1) login to another system, 2) do some work, 3) return some result and exit, is that correct? 需要说明的是:您的脚本必须1)登录到另一个系统,2)做一些工作,3)返回一些结果并退出,是否正确?

If that is correct: 如果这正确的:
1) break you script down into the above 3 parts 1)将脚本分解为以上3部分
2) run each part separately with as much logging as you can to check that each stage completes normally and find out where and how it fails if it fails by reading the logs. 2)单独运行每个部分,并记录尽可能多的日志,以检查每个阶段是否正常完成,并通过读取日志找出失败的位置和方式。
3) only proceed to next part of the script when the previous part is working. 3)仅在上一部分工作时才继续执行脚本的下一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM