[英]My Python Script does not run from Task Scheduler
I have a script which I want to run on a daily basis at the same time, automatically.我有一个脚本,我想每天同时自动运行它。 I tried to use Windows Task Scheduler.
我尝试使用 Windows 任务计划程序。 but no luck so far.
但到目前为止还没有运气。 FYI I can run the same script from the console without any issue.
仅供参考,我可以从控制台运行相同的脚本,没有任何问题。
I tried我试过了
where python
C:\Users\name\Anaconda3\python.exe
C:\Users\name\AppData\Local\Programs\Python\Python38\python.exe
C:\Users\name\AppData\Local\Microsoft\WindowsApps\python.exe
on TaskScheduler在任务调度器上
Program/script: "C:\Users\name\AppData\Local\Programs\Python\Python38\python.exe"
Add arguments: Nomura_Daily_PnL_Check.py
Start in: "C:\Users\name\Jobs\scripts_need_to_run_daily"
when the scheduled time come, literally nothing happens.当预定的时间到来时,实际上什么也没有发生。 No error, No output, nothing!
没有错误,没有输出,什么都没有!
what is wrong in this process?这个过程有什么问题?
try mentioning values without double inverted commas, like:尝试提及没有双引号的值,例如:
Program/script: C:\Users\name\AppData\Local\Programs\Python\Python38\python.exe
Add arguments: Nomura_Daily_PnL_Check.py
Start in: C:\Users\name\Jobs\scripts_need_to_run_daily
Also first try to run a simple program, lets say a python program which will write to a file so that you will know whether task is failing or there is some issue with your program.另外首先尝试运行一个简单的程序,假设一个 python 程序将写入文件,以便您知道任务是否失败或您的程序是否存在问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.