I get FileNotFound error while using psutil library – Ubuntu
I'm trying to run and kill site.py python script every 5 minutes using webreset.py script. webreset.py: from psutil import Process, Popen from time import sleep pid = 0 while True: if pid: Process(pid).terminate() process = Popen('python3 site.py') pid = process.pid…