我想总是在Windows中运行Python脚本。每 5 分钟检查一次脚本是否正在运行,如果没有,则运行它。
在 Linux 中,这可以使用 flock 和 cron job 来完成。如何在窗口中完成此操作?
您可以使用任务计划程序。创建一个新的基本任务,使用 python 作为程序,以脚本为参数。
我想总是在Windows中运行Python脚本。每 5 分钟检查一次脚本是否正在运行,如果没有,则运行它。
在 Linux 中,这可以使用 flock 和 cron job 来完成。如何在窗口中完成此操作?
您可以使用任务计划程序。创建一个新的基本任务,使用 python 作为程序,以脚本为参数。
javascript python java c# php android html jquery c++ css ios sql mysql arrays asp.net json python-3.x ruby-on-rails .net sql-server django objective-c excel regex ruby linux ajax iphone xml vba spring asp.net-mvc database wordpress string postgresql wpf windows xcode bash git oracle list vb.net multithreading eclipse algorithm macos powershell visual-studio image forms numpy scala function api selenium