{"action":"created","issue":{"url":"https://api.github.com/repos/KimiNewt/pyshark/issues/92","labels_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/92/comments","events_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/92/events","html_url":"https://github.com/KimiNewt/pyshark/issues/92","id":98163956,"number":92,"title":"Stop a Live Capture","user":{"login":"RomainLaniece","id":11884734,"avatar_url":"https://avatars.githubusercontent.com/u/11884734?v=3","gravatar_id":"","url":"https://api.github.com/users/RomainLaniece","html_url":"https://github.com/RomainLaniece","followers_url":"https://api.github.com/users/RomainLaniece/followers","following_url":"https://api.github.com/users/RomainLaniece/following{/other_user}","gists_url":"https://api.github.com/users/RomainLaniece/gists{/gist_id}","starred_url":"https://api.github.com/users/RomainLaniece/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomainLaniece/subscriptions","organizations_url":"https://api.github.com/users/RomainLaniece/orgs","repos_url":"https://api.github.com/users/RomainLaniece/repos","events_url":"https://api.github.com/users/RomainLaniece/events{/privacy}","received_events_url":"https://api.github.com/users/RomainLaniece/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-30T13:02:39Z","updated_at":"2015-11-16T09:24:21Z","closed_at":null,"body":"Hi,\r\n\r\nI just start with pyshark, and try to get a living capture. Here is the basic commands I use :\r\n\r\nimport pyshark\r\ncapture = pyshark.LiveCapture(interface='eth0')\r\ncapture.sniff(timeout=5)\r\n\r\nBy doing this, I get a capture of 5 seconds, that's ok.\r\nThe only problem I have, is that tshark continues to run in background, and doesn't stop to fill a temporary file in /tmp/ (named wireshark_pcapng_eth0_* with * the date and a sort of id).\r\n\r\nThe only way I have, to stop the tshark binary, is to stop my python script execution, but the tmp files are still existing.\r\n\r\nSo my question are : \r\n - is it the normal behaviour ?\r\n - is it possible to capture xxx seconds of a living stream, then stop tshark and remove the temporary file by using the pyshark library ?\r\n\r\nThanks,\r\n\r\nRomain.\r\n"},"comment":{"url":"https://api.github.com/repos/KimiNewt/pyshark/issues/comments/156965588","html_url":"https://github.com/KimiNewt/pyshark/issues/92#issuecomment-156965588","issue_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/92","id":156965588,"user":{"login":"RemiDesgrange","id":13271765,"avatar_url":"https://avatars.githubusercontent.com/u/13271765?v=3","gravatar_id":"","url":"https://api.github.com/users/RemiDesgrange","html_url":"https://github.com/RemiDesgrange","followers_url":"https://api.github.com/users/RemiDesgrange/followers","following_url":"https://api.github.com/users/RemiDesgrange/following{/other_user}","gists_url":"https://api.github.com/users/RemiDesgrange/gists{/gist_id}","starred_url":"https://api.github.com/users/RemiDesgrange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RemiDesgrange/subscriptions","organizations_url":"https://api.github.com/users/RemiDesgrange/orgs","repos_url":"https://api.github.com/users/RemiDesgrange/repos","events_url":"https://api.github.com/users/RemiDesgrange/events{/privacy}","received_events_url":"https://api.github.com/users/RemiDesgrange/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T09:24:21Z","updated_at":"2015-11-16T09:24:21Z","body":"Hi, @llchen223 what do you mean by \"branch pyshark and change the subprocess parameters\" ? \r\n\r\nthanks"}}