I apologize if this is a duplicate but my search terms didn't find me what I was looking for.
I only ever 'kill' my python script using its linux process id.
This has served me well but now I need to pickle certain things right before terminating.
What is the best practice for communicating with a running Python script from the linux command line? Is there a library I should know about?
Example action would be sending a terminate command to the running script, but also can see uses in the near future for modifying config variables etc.