{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"errbot: named fifo to send messages","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/339 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"339\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\"><\/style><div class=\"code\"><table class=\"py\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\">if not os.path.exists(pipe_name):\r\n&#160; &#160; os.mkfifo(pipe_name) \r\n&#160; &#160; pipein = open(pipe_name, 'r')\r\n&#160; &#160; while True:\r\n&#160; &#160; &#160; &#160; line = pipein.readline()[:-1]\r\n&#160; &#160; &#160; &#160; self.send(...)\r\n&#160;<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/339\/rev-raw\/d02ce62d783e14d999b10b8d0a7ba3c9e1b38135\/code.py\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/339#code.py\">code.py<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <div class=\"code\"><pre class=\"txt\">&lt;gbin&gt; something as simple as that in a thread ?<\/pre><\/div>\n\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/339\/rev-raw\/d02ce62d783e14d999b10b8d0a7ba3c9e1b38135\/phork0.txt\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/339#phork0.txt\">phork0.txt<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
