I need a Python script subprocess.run() call for the following:
kill -HUP `ps -C gunicorn fch -o pid | head -n 1`
This can't be one long concatenation
subprocess.run(["kill","-HUP","ps","-C","gunicorn","fch","-o","pid","|","head","-n","1"])
How to read the ps -C gunicorn fch -o pid | head -n 1 portion into subprocess.run so it is interpreted by "kill","-HUP" as a quoted string?