Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> from subprocess import Popen
- >>> from signal import SIGKILL
- >>> from os import kill
- >>> a = Popen("gnome-terminal -- 'ping' 'google.com'", shell=1)
- >>> kill(a.pid, SIGKILL)
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement