简体   繁体   English

如何识别Windows 7-10上运行后台的作业?

[英]how to identify jobs running background on Windows 7-10?

I want to run a Python process in background, and I use the following command in PowerShell. 我想在后台运行Python进程,并且在PowerShell中使用以下命令。

powershell > PowerShell.exe -windowstyle hidden python my_process.py

But, How can I know whether it is running in background? 但是,我怎么知道它是否在后台运行? The task manager can not show a process named python my_process.py that running in background, and I don't know the process id on task manager, it just show some python and powershell processes running in background. 任务管理器无法显示在后台运行的名为python my_process.py的进程,并且我不知道任务管理器上的进程ID,它仅显示了在后台运行的某些pythonpowershell进程。 I can not identify which process is my Python process. 我无法确定哪个进程是我的Python进程。

Not actually a programming question, but: 实际上不是编程问题,但是:

In Task Manager's Process page, choose View > Select Columns and add the Command Line column. 在任务管理器的“进程”页面中,选择“ 视图”>“选择列”,然后添加“命令行”列。 Then you can see the actual command line for each process and you should be able to track down the ones you're interested in. 然后,您可以查看每个进程的实际命令行,并且应该能够找到感兴趣的命令行。

This is for Windows 7; 这适用于Windows 7; I know they made some changes to the Task Manager for Windows 10 but don't have access to a Windows 10 machine at the moment. 我知道他们对Windows 10的任务管理器做了一些更改,但目前无法访问Windows 10计算机。

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

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