{"id":610,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=610"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"waiting-for-other-threads","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=610","title":{"rendered":"Waiting for other threads"},"content":{"rendered":"<p>Sometimes you&#8217;ll want your scripts to pause until some other thread or process has been launched, so it has the services it needs to continue. For example, if you try to launch certain network apps from UserBootscript, the net_server may not be ready before they&#8217;re launched. To rectify this, use the <code>waitfor<\/code> command followed by the name of a thread to wait for. For example:<\/p>\n<pre>\nwaitfor net_server\n\/path\/to\/BeAIM &amp;\n<\/pre>\n<p>Note that waitfor needs the actual name of the thread (i.e. StyledEdit or CDPlayer), and not some obscure thread number.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes you&#8217;ll want your scripts to pause until some other thread or process has been launched, so it has the services it needs to continue. For example, if you try to launch certain network apps from UserBootscript, the net_server may not be ready before they&#8217;re launched. To rectify this, use the waitfor command followed by [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[10],"class_list":["post-610","post","type-post","status-publish","format-standard","hentry","tag-scripting"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=610"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/610\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}