Wireshark mailing list archives
Kill a process started via Popen command
From: Nicole Powell <mznikkip () hotmail com>
Date: Mon, 9 Nov 2009 09:25:20 -0500
I am trying to kill a process that was started via the Popen command: s = sub.Popen( ['tshark -r ' + orig_file_name + ' -o column.format:"Info","%i"'], shell=True, stdout=sub.PIPE, stderr=sub.PIPE ) This process runs over a period of time. Is there a simple way to kill it? I tried using the "kill()" function but that requires knowledge of the pid of the process; Popen returns a file pointer but not the pid of the process that was started.
From the desk of Nicole A. Powell.....
___________________________________________________________________________ Sent via: Wireshark-users mailing list <wireshark-users () wireshark org> Archives: http://www.wireshark.org/lists/wireshark-users Unsubscribe: https://wireshark.org/mailman/options/wireshark-users mailto:wireshark-users-request () wireshark org?subject=unsubscribe
Current thread:
- Kill a process started via Popen command Nicole Powell (Nov 09)