title: Bash read from ttyUSB0 and send to URL
body: <p>I am a bash novice and I am struggling with putting it all together.</p>
  
  <p>What I am trying to do is:</p>
  
  <p>1) Set Port (stty)<br/>
  2) Read from dev/ttyUSB0 - data should look like 000118110000101 (cat or Gawk?)<br/>
  3) Set read data into a variable eg DATA and create a URL eg <a href="http://domain.com/get_data.php?data=" rel="nofollow">http://domain.com/get_data.php?data=</a>$DATA<br/>
  4) load the URL with wget?<br/>
  5) Wait for more data from ttyUSB0 (polling or loop?)<br/></p>
  
  <p>I have tried the php DIO extention that does work but is not reliable because it stops/starts for some reason.</p>
  
  <p>ANY suggestions would be much appreciated, I will be very great-full if anyone could advise the best way to do this</p>
  
  <p>Thanks</p>
  
  <p>Brent</p>