
{"id":18180,"date":"2019-08-02T21:18:32","date_gmt":"2019-08-02T21:18:32","guid":{"rendered":"http:\/\/beautifulwork.org\/?p=18180"},"modified":"2019-08-02T21:18:32","modified_gmt":"2019-08-02T21:18:32","slug":"simple-example-of-a-bash-builtin-command-named-wait","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2019\/08\/02\/simple-example-of-a-bash-builtin-command-named-wait\/","title":{"rendered":"Simple example of a bash builtin command named &#8220;wait&#8221;"},"content":{"rendered":"<p><u>ABOUT wait<\/u><\/p>\n<pre>\nwait waits for the process identified by process ID pid (or the job specified by job ID jobid), and\nreports its termination status. If an ID is not given, wait waits for all currently active child\nprocesses, and the return status is zero. If the ID is a job specification, wait waits for all processes\nin the job's pipeline.\n<\/pre>\n<p><u>A TYPICAL SHELL EXPOSURE<\/u><br \/>\n[bash]<br \/>\n$sleep 10 &amp;<br \/>\n[1] 7122<br \/>\n$wait 7122<br \/>\n[1]+  Done                    sleep 10<br \/>\n$sleep 20 &amp;<br \/>\n[1] 7125<br \/>\n$wait 7125<br \/>\n[1]+  Done                    sleep 20<br \/>\n$sleep 20 &amp;<br \/>\n[1] 7128<br \/>\n$wait 7128<br \/>\n[1]+  Done                    sleep 20<br \/>\n$sleep 20 &amp;<br \/>\n[1] 7135<br \/>\n$wait 7135<br \/>\n[1]+  Done                    sleep 20<br \/>\n$wait<br \/>\n$wait<br \/>\n$<\/p>\n<p>[\/bash]<\/p>\n<p>LINK<br \/>\n<a href=\"https:\/\/www.computerhope.com\/unix\/uwait.htm\">https:\/\/www.computerhope.com\/unix\/uwait.htm<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT wait wait waits for the process identified by process ID pid (or the job specified by job ID jobid), and reports its termination status. If an ID is not given, wait waits for all currently active child processes, and the return status is zero. If the ID is a job specification, wait waits for &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2019\/08\/02\/simple-example-of-a-bash-builtin-command-named-wait\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Simple example of a bash builtin command named &#8220;wait&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":18255,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,8,83],"tags":[1661],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18180"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=18180"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/18180\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=18180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=18180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=18180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}