title: How can I use Process class in Arduino Yun to read some stream-data?
body: <p>Running shell command through <code>Bridge</code> in <code>Arduino Yun</code> through a <code>Process</code> let's say, <code>proc</code>, it gives result and we can read the result bytes using following piece of code.</p>
  
  <pre><code>#include &lt;Bridge.h&gt;
  #include &lt;Process.h&gt;
  
  void setup() {
    Bridge.begin();
    Serial.begin(9600);
    while (!Serial);
  }
  
  void loop() {
      Process proc;
      proc.runShellCommand("ls /root/");
      while (proc.available() &gt; 0)
          Serial.print((char)proc.read());
      Serial.println();
  }
  </code></pre>
  
  <p>What if I have to access data from a blocking shell command as it gets updated like and <code>event</code>? Such as, some consumer that listens to <code>Kafka</code> or <code>Mosquitto</code> subscribed topic. Whenever that topic is updated/published with new data, the listener gets it.</p>
  
  <p>How can I model such structure using <code>Arduino Yun</code> program using <code>Bridge</code>.</p>