{"id":1109,"date":"2025-05-15T21:42:38","date_gmt":"2025-05-15T20:42:38","guid":{"rendered":"https:\/\/monkey.ploogie.co.uk\/?page_id=1109"},"modified":"2025-05-16T00:36:30","modified_gmt":"2025-05-15T23:36:30","slug":"included-process-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-process-functions\/","title":{"rendered":"Included Process Functions"},"content":{"rendered":"<p>Mwnci process functions that are not part of the builtin functions can be loaded with<\/p>\n<pre>include(\"ps\")<\/pre>\n<h2>Functions<\/h2>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><strong>Command<\/strong><\/td>\n<td class=\"confluenceTd\"><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getpname-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">getpname()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the process name of a given process id (Pid).<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-pnametopid-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">pnametopid()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns the process id (Pid) of a given process name.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-process-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">process()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns information about active processes.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-procexists-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">procexists()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if a process id exists<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-procstat-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">procstat()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns simpler information about active processes.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci process functions that are not part of the builtin functions can be loaded with include(&#8220;ps&#8221;) Functions Command Definition getpname() Returns the process name of a given process id (Pid). pnametopid() Returns the process id (Pid) of a given process name. process() Returns information about active processes. procexists() Returns true if a process id exists &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/included-process-functions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Included Process Functions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1109","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=1109"}],"version-history":[{"count":6,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1109\/revisions"}],"predecessor-version":[{"id":1123,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/1109\/revisions\/1123"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}