You can use os.kill():
os.kill(os.getpid(), signal.SIGUSR1)
Put this anywhere in your code that you want to send the signal from.
More Related Contents:
- How to use `subprocess` command with pipes
- Is it possible to change the Environment of a parent process in Python?
- Python FTP get the most recent file by date
- Python: how to kill child process(es) when parent dies?
- Access Denied page with headless Chrome on Linux while headed Chrome works on windows using Selenium through Python
- Shebang Notation: Python Scripts on Windows and Linux?
- Find size and free space of the filesystem containing a given file
- Linux command-line call not returning what it should from os.system?
- How to handle a signal.SIGINT on a Windows OS machine?
- Simulate keystroke in Linux with Python
- Simulating Key Press event using Python for Linux
- How to store the result of an executed shell command in a variable in python? [duplicate]
- Calling a python script from command line without typing “python” first
- How to split a huge csv file based on content of first column?
- OSError 38 [Errno 38] with multiprocessing
- How do I ‘lock the keyboard’ to prevent any more keypresses being sent on X11/Linux/Gnome?
- gunicorn command not found, but it’s in my requirements.txt
- Fetching the output of a command executed through os.system() command [duplicate]
- Tkinter.PhotoImage doesn’t not support png image
- 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?
- Is Python variable assignment atomic?
- Pyaudio installation error – ‘command ‘gcc’ failed with exit status 1′
- how to find the owner of a file or directory in python
- Get mouse deltas using Python! (in Linux)
- Multiprocessing: use only the physical cores?
- kill process with python
- Move and zoom a tkinter canvas with mouse
- Python multiprocessing linux windows difference
- Dropping Root Permissions In Python