{"id":305,"date":"2011-03-14T12:11:28","date_gmt":"2011-03-14T11:11:28","guid":{"rendered":"http:\/\/webpiraten.de\/?p=305"},"modified":"2011-03-14T12:11:28","modified_gmt":"2011-03-14T11:11:28","slug":"shell-do-something-in-a-while","status":"publish","type":"post","link":"https:\/\/webpiraten.de\/index.php\/php\/shell-do-something-in-a-while\/","title":{"rendered":"shell do something in a while"},"content":{"rendered":"<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#!\/bin\/bash\r\n\r\nDONE=0\r\nwhile &#x5B; $DONE -eq 0 ] \r\ndo\r\n    #do something and return something else than 0 when you want to exit this circle\r\n    DONE=$?\r\ndone\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/bash DONE=0 while &#x5B; $DONE -eq 0 ] do #do something and return something else than 0 when you want to exit this circle DONE=$? done<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77,75,5,54,76],"tags":[144,236,233,235,645,234],"class_list":["post-305","post","type-post","status-publish","format-standard","hentry","category-deployment","category-linux","category-php","category-server","category-shell","tag-bash","tag-code","tag-do","tag-exit","tag-shell","tag-while"],"_links":{"self":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/comments?post=305"}],"version-history":[{"count":1,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions"}],"predecessor-version":[{"id":306,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/posts\/305\/revisions\/306"}],"wp:attachment":[{"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/media?parent=305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/categories?post=305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webpiraten.de\/index.php\/wp-json\/wp\/v2\/tags?post=305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}