[英]how to run subprocess at a given time python
I tried below code to run my subprocess after 1 minute
我尝试了以下代码以subprocess after 1 minute
运行我的subprocess after 1 minute
process = Popen(['python3','helloworld.py','|','at -m now +1 minute'], stdout=PIPE, stderr=PIPE)
I run above line from terminal..it is executing immediately but not after 1 minute. 我从终端运行以上行..它正在立即执行,但没有在1分钟后执行。 How to set a particular time to RUN.. 如何将特定时间设置为“运行”。
how to run subprocess at a given time python. 如何在给定的时间运行python子进程。
Please help me. 请帮我。
除非使用Popen设置shell = True,否则不能在命令中使用管道。
process = Popen('"python3 helloworld.py" | at -m now +1 minute', stdout=PIPE, stderr=PIPE, shell=True)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.