By using psutil ( https://github.com/giampaolo/psutil ):
>>> import psutil
>>> somepid = 1023
>>> p = psutil.Process(somepid)
>>> p.suspend()
>>> p.resume()
More Related Contents:
- Make sure only a single instance of a program is running
- Check to see if python script is running
- How to terminate process from Python using pid?
- Intercepting stdout of a subprocess while it is running
- Kill process by name?
- Is there a way to change effective process name in Python?
- What’s the best way to duplicate fork() in windows?
- How to check if there exists a process with a given pid in Python?
- How to add a timeout to a function in Python
- How to handle a signal.SIGINT on a Windows OS machine?
- Keep a subprocess alive and keep giving it commands? Python
- python: windows equivalent of SIGALRM
- How do I run another script in Python without waiting for it to finish? [duplicate]
- spawning process from python
- Determining running programs in Python
- Terminate a python script from another python script
- Python: Getting a traceback from a multiprocessing.Process
- Using stdin in a child Process
- How to get the return value of a function passed to multiprocessing.Process?
- Python: Catch Ctrl-C command. Prompt “really want to quit (y/n)”, resume execution if no
- How do I prevent fixtures from conflicting with django post_save signal code?
- Kill or terminate subprocess when timeout?
- How can I send a signal from a python program?
- Is Python variable assignment atomic?
- Real-time intercepting of stdout from another process in Python
- Run a process and kill it if it doesn’t end within one hour
- How to signal slots in a GUI from a different process?
- Killing child process when parent crashes in python
- kill process with python
- Understanding scipy deconvolve