{"id":109,"date":"2019-12-31T10:45:30","date_gmt":"2019-12-31T15:45:30","guid":{"rendered":"https:\/\/synetech.ddns.net\/blogs\/synetech\/?p=109"},"modified":"2022-12-16T11:19:09","modified_gmt":"2022-12-16T16:19:09","slug":"killbyargs","status":"publish","type":"post","link":"https:\/\/synetech.ddns.net\/blogs\/synetech\/killbyargs\/","title":{"rendered":"KillByArgs"},"content":{"rendered":"<p><a href=\"\/synetech\/KillByArgs.zip\">KillByArgs<\/a> kills a process that contains specific command-line arguments.<\/p>\n<pre>\r\n> KillByArgs PROCESSNAME ARG(s) [\/ALL]\r\n\r\n\tPROCESSNAME\t- name (or part of a name) of target process\r\n\tARG(s)\t\t- string to look for in the process' arguments\r\n\t\/ALL\t\t- kill all matches, or else just first match found\r\n\r\n\tRETURNS number of processes matched\r\n\t(processes may not be killed depending on permissions)\r\n\r\n\teg: Kills only notepad that has foobar.txt open:\r\n\t    > KillByArgs   notepad foobar.txt\r\n\r\n\teg: Kills all instances of explorer that were run as embedded:\r\n\t    > KillByArgs   explorer -embedding \/all\r\n\r\n<\/pre>\n<p><em>NOTE: Be as specific as possible to avoid killing unintended processes!<\/em><\/p>\n<p>Changelog:<br \/>\n<a href=\"javascript:void(null);\" onclick=\"s_toggleDisplay(document.getElementById('SID702191732'), this, 'Show &#9660;', 'Hide &#9650;');\">Show &#9660;<\/a><\/p>\n<div id='SID702191732' style='display:none;'>\n<ul>\n<li>2021-05-09:\n<ul>\n<li>\n\t\t\t\tVersion 1:<\/p>\n<ul>\n<li>\n\t\t\t\t\t\t\tProject conceived\n\t\t\t\t\t\t<\/li>\n<li>\n\t\t\t\t\t\t\tFirst release\n\t\t\t\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t\t\tVersion 2:<\/p>\n<ul>\n<li>\n\t\t\t\t\t\t\tAdded <tt>\/ALL<\/tt> switch\n\t\t\t\t\t\t<\/li>\n<\/ul>\n<\/li>\n<li>\n\t\t\t\tVersion 3:<\/p>\n<ul>\n<li>\n\t\t\t\t\t\t\tAdded return value\n\t\t\t\t\t\t<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>KillByArgs kills a process that contains specific command-line arguments. > KillByArgs PROCESSNAME ARG(s) [\/ALL] PROCESSNAME &#8211; name (or part of a name) of target process ARG(s) &#8211; string to look for in the process&#8217; arguments \/ALL &#8211; kill all matches, or else just first match found RETURNS number of processes matched (processes may not be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-109","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts\/109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/comments?post=109"}],"version-history":[{"count":0,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/posts\/109\/revisions"}],"wp:attachment":[{"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/media?parent=109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/categories?post=109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/synetech.ddns.net\/blogs\/synetech\/wp-json\/wp\/v2\/tags?post=109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}